2012-08-08 88 views
1

每當我試着用QT作爲GUI支持使用IPython中它給了我這樣的:如何嵌入QT-控制檯IPython的

enter code here $ ipython --gui=qt 
        Python 2.7.3 (default, Apr 20 2012, 22:39:59) 
Type "copyright", "credits" or "license" for more information. 

IPython 0.12.1 -- An enhanced Interactive Python. 
?   -> Introduction and overview of IPython's features. 
%quickref -> Quick reference. 
help  -> Python's own help system. 
object? -> Details about 'object', use 'object??' for extra details. 

In [1]: Got bus address: "unix:abstract=/tmp/dbus- q  1DAvsew5j,guid=a3ed4bb7c5723eeff9aaed690000006e" 
Connected to accessibility bus at: "unix:abstract=/tmp/dbus- q1DAvsew5j,guid=a3ed4bb7c5723eeff9aaed690000006e" 
    Registered DEC: true 
    Registered event listener change listener: true 
    Registered event listener change listener: true 
    Registered event listener change listener: true 
    Registered event listener change listener: true 
    Registered event listener change listener: true 
    Registered event listener change listener: true 
    Registered event listener change listener: true 

我的問題是:

  1. 這是什麼和爲什麼它不會停止,直到鍵盤中斷?

  2. 如何在ipython中嵌入qt控制檯?

+0

如果你試圖啓動Qt的控制檯,命令'ipython qtconsole'。 – 2012-08-08 16:25:11

回答

0

可以在理論上完成同樣的事情(停止QT AT API的消息),而不通過設置環境變量QT_ACCESSIBILITY淨化包

即添加

export QT_ACCESSIBILITY=0 

到您的外殼和/或系統啓動(如〜/ .bashrc)

你可以看一下README瞭解這裏的QT無障礙包

在/ usr /共享/ DOC/QT-AT-SPI/README

相關問題