From efad0c3e731da7a3ca46a68d04ffb60614752fa5 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Thu, 3 Jun 2010 08:43:08 +0800 Subject: [PATCH] Add a small test code for gir --- src/python/ibus.py | 11 +++++++++++ src/python/test.py | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 src/python/ibus.py create mode 100644 src/python/test.py diff --git a/src/python/ibus.py b/src/python/ibus.py new file mode 100644 index 00000000..e0d0379b --- /dev/null +++ b/src/python/ibus.py @@ -0,0 +1,11 @@ +from gi.repository.IBus import \ + Bus, \ + Engine, \ + Attribute, \ + AttrList, \ + Text, \ + LookupTable, \ + Property, \ + PropList, \ + Component, \ + EngineDesc diff --git a/src/python/test.py b/src/python/test.py new file mode 100644 index 00000000..dd0ec2fd --- /dev/null +++ b/src/python/test.py @@ -0,0 +1,5 @@ +import ibus +bus = ibus.Bus() +ibus.Engine.new("pinyin", "/aa", bus.get_connection()) +for e in bus.list_engines(): + print e.name -- 2.34.1