def test(): vkb = VKBProxy(ibus.Bus().get_dbusconn()) print "Send VKB String" vkb.SendText(serializable.serialize_object(ibus.Text("TEST VKB STRING"))) print "Send Retrun Key" vkb.SendKey(keysyms.Return, 0) import gobject loop = gobject.MainLoop() loop.run()
def send_text(self, text): if self.connected: t = serializable.serialize_object(ibus.Text(text)) self.vkb.SendText(t)