Logo Search packages:      
Sourcecode: zeitgeist version File versions

def zeitgeist::dbusutils::DBusInterface::connect (   cls,
  signal,
  callback,
  arg0 = None 
)

Connect a callback to a signal of the current proxy instance 

Definition at line 77 of file dbusutils.py.

00077                                                    :
            """Connect a callback to a signal of the current proxy instance """
            proxy = cls._get_proxy()
            if arg0 is None:
                  proxy.connect_to_signal(
                        signal,
                        callback,
                        dbus_interface=cls.INTERFACE_NAME
                  )
            else:
                  # TODO: This is ugly and limited to 1 argument. Find a better
                  # way to do it.
                  proxy.connect_to_signal(
                        signal,
                        callback,
                        dbus_interface=cls.INTERFACE_NAME,
                        arg0=arg0
                  )
      
      def __init__(self):


Generated by  Doxygen 1.6.0   Back to index