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