summaryrefslogtreecommitdiff
path: root/examples/example-async-client.py
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-01-20 12:39:07 +0000
committerSimon McVittie <smcv@debian.org>2016-01-20 12:39:07 +0000
commitd7677ab1bcabe60e84215eb17b51b644737bfcb0 (patch)
tree6f5d1c2fde097fa98c26c8e007390ec163691721 /examples/example-async-client.py
parentea0e8705750e8b4448e5e51c86d07132cf1ac1c8 (diff)
downloaddbus-python-d7677ab1bcabe60e84215eb17b51b644737bfcb0.tar.gz
Use gi instead of gobject, everywhere except dbus.gobject_service
Diffstat (limited to 'examples/example-async-client.py')
-rwxr-xr-xexamples/example-async-client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/example-async-client.py b/examples/example-async-client.py
index c9e0a4f..a24191d 100755
--- a/examples/example-async-client.py
+++ b/examples/example-async-client.py
@@ -32,7 +32,7 @@ python example-client.py --exit-service
import sys
import traceback
-import gobject
+from gi.repository import GLib
import dbus
import dbus.mainloop.glib
@@ -108,13 +108,13 @@ if __name__ == '__main__':
sys.exit(1)
# Make the method call after a short delay
- gobject.timeout_add(1000, make_calls)
+ GLib.timeout_add(1000, make_calls)
failed = False
hello_replied = False
raise_replied = False
- loop = gobject.MainLoop()
+ loop = GLib.MainLoop()
loop.run()
if failed:
raise SystemExit("Example async client failed!")