diff options
author | Simon McVittie <smcv@debian.org> | 2016-01-20 12:39:07 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2016-01-20 12:39:07 +0000 |
commit | d7677ab1bcabe60e84215eb17b51b644737bfcb0 (patch) | |
tree | 6f5d1c2fde097fa98c26c8e007390ec163691721 /examples/example-async-client.py | |
parent | ea0e8705750e8b4448e5e51c86d07132cf1ac1c8 (diff) | |
download | dbus-python-d7677ab1bcabe60e84215eb17b51b644737bfcb0.tar.gz |
Use gi instead of gobject, everywhere except dbus.gobject_service
Diffstat (limited to 'examples/example-async-client.py')
-rwxr-xr-x | examples/example-async-client.py | 6 |
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!") |