revert between 56095 -> 55830 in arch
[AROS.git] / rom / dbus / test / dbus-ping-listen.py
blob380a2203faf1ddec84abc5c0cf42ef19bd781b1b
1 #! /usr/bin/env python
3 import gtk
4 import dbus
6 bus = dbus.Bus()
8 def signal_callback(interface, signal_name, service, path, message):
9 print "Received signal %s from %s" % (signal_name, interface)
11 # Catch signals from a specific interface and object, and call signal_callback
12 # when they arrive.
13 bus.add_signal_receiver(signal_callback,
14 "com.burtonini.dbus.Signal", # Interface
15 None, # Any service
16 "/" # Path of sending object
19 # Enter the event loop, waiting for signals
20 gtk.main()