Exemple #1
0
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()
Exemple #2
0
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()
Exemple #3
0
 def send_text(self, text):
     if self.connected:
         t = serializable.serialize_object(ibus.Text(text))
         self.vkb.SendText(t)
Exemple #4
0
 def send_text(self, text):
     if self.connected:
         t = serializable.serialize_object(ibus.Text(text))
         self.vkb.SendText(t)