Modify some interface.
[ibus.git] / ibus / application.py
blobd46dd26da20d5633d52dc767496a8b918faad609
1 import ibus
2 import dbus
4 class Application:
5 def __init__ (self):
6 self._dbusconn = dbus.connection.Connection (ibus.IBUS_ADDR)
7 self._dbusconn.add_signal_receiver (self._disconnected_cb,
8 "Disconnected",
9 dbus_interface = dbus.LOCAL_IFACE)
11 def _disconnected_cb (self):
12 self.on_disconnected ()
14 def on_disconnected (self):
15 pass
17 def run (self):
18 pass