def __init__(self, parent_view): Listener.__init__(self, parent_view) GUIObject.__init__(self) HideableObject.__init__(self) self.parent_view = parent_view self.mainwindow = parent_view.mainwindow self.document = self.mainwindow.document self.app = self.document.app
def __init__(self, document, listento=None): if listento is None: listento = document Listener.__init__(self, listento) GUIObject.__init__(self) #: Parent :class:`document <.Document>`. self.document = document #: Parent :class:`app <.Application>`. self.app = document.app
def _add_plugin_listeners(self, plugins): listeners = [Listener(plugin) for plugin in plugins if not plugin.always_perform_action()] for listener in listeners: listener.bind_messages((ImportActionPlugin.action_name_changed,), lambda: self._refresh_swap_list_items()) listener.connect() self._import_action_listeners.append(listener)
def __init__(self, app): Listener.__init__(self, app) self.app = app
def dispatch(self, msg): if self._process_message(msg): Listener.dispatch(self, msg)
def __init__(self, document): Listener.__init__(self, document) GUIObject.__init__(self) self.document = document self.app = document.app
def __init__(self, app): Listener.__init__(self, app) GUIObjectBase.__init__(self) self.app = app self.connect()