32 from dbus.service
import BusName, Object
34 from python_qt_binding.QtCore
import qDebug
38 """DBus service of the `PerspectiveManager` available on the unique bus name.""" 40 def __init__(self, perspective_manager, application_context):
41 bus_name = BusName(application_context.dbus_unique_bus_name, dbus.SessionBus())
42 super(PerspectiveManagerDBusInterface, self).
__init__(bus_name,
'/PerspectiveManager')
45 @dbus.service.method(
'org.ros.qt_gui.PerspectiveManager', in_signature=
's', out_signature=
'')
47 qDebug(
'PerspectiveManagerDBusInterface.switch_perspective(%s)' % perspective)
48 self._perspective_manager.switch_perspective(perspective)
def __init__(self, perspective_manager, application_context)
def switch_perspective(self, perspective)