Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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)
Ejemplo n.º 5
0
 def __init__(self, app):
     Listener.__init__(self, app)
     self.app = app
Ejemplo n.º 6
0
 def __init__(self, app):
     Listener.__init__(self, app)
     self.app = app
Ejemplo n.º 7
0
 def dispatch(self, msg):
     if self._process_message(msg):
         Listener.dispatch(self, msg)
Ejemplo n.º 8
0
 def __init__(self, document):
     Listener.__init__(self, document)
     GUIObject.__init__(self)
     self.document = document
     self.app = document.app
Ejemplo n.º 9
0
 def __init__(self, app):
     Listener.__init__(self, app)
     GUIObjectBase.__init__(self)
     self.app = app
     self.connect()
Ejemplo n.º 10
0
 def dispatch(self, msg):
     if self._process_message(msg):
         Listener.dispatch(self, msg)