Update python test scripts for gobject-introspection
This commit is contained in:
Родитель
5d8096b846
Коммит
6670716f73
|
@ -4,7 +4,6 @@ from gi.repository.IBus import \
|
|||
Bus, \
|
||||
Component, \
|
||||
Config, \
|
||||
Connection, \
|
||||
Engine, \
|
||||
EngineDesc, \
|
||||
Factory, \
|
||||
|
@ -18,6 +17,5 @@ from gi.repository.IBus import \
|
|||
Property, \
|
||||
Proxy, \
|
||||
Serializable, \
|
||||
Server, \
|
||||
Service, \
|
||||
Text
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
import ibus
|
||||
bus = ibus.Bus()
|
||||
ibus.Engine.new("pinyin", "/aa", bus.get_connection())
|
||||
for e in bus.list_engines():
|
||||
print e.name
|
||||
if not bus.is_connected():
|
||||
print "Can not connect to ibus-daemon"
|
||||
else:
|
||||
for e in bus.list_engines():
|
||||
print e.get_name()
|
||||
|
|
Загрузка…
Ссылка в новой задаче