예제 #1
0
파일: base.py 프로젝트: Mouchnino/moneyguru
 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
예제 #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
예제 #3
0
파일: base.py 프로젝트: tautonic/moneyguru
 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
예제 #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)
예제 #5
0
파일: base.py 프로젝트: atiarda/dupeguru
 def __init__(self, app):
     Listener.__init__(self, app)
     self.app = app
예제 #6
0
 def __init__(self, app):
     Listener.__init__(self, app)
     self.app = app
예제 #7
0
 def dispatch(self, msg):
     if self._process_message(msg):
         Listener.dispatch(self, msg)
예제 #8
0
파일: base.py 프로젝트: Mouchnino/moneyguru
 def __init__(self, document):
     Listener.__init__(self, document)
     GUIObject.__init__(self)
     self.document = document
     self.app = document.app
예제 #9
0
파일: base.py 프로젝트: treborrx/pdfmasher
 def __init__(self, app):
     Listener.__init__(self, app)
     GUIObjectBase.__init__(self)
     self.app = app
     self.connect()
예제 #10
0
파일: base.py 프로젝트: tautonic/moneyguru
 def dispatch(self, msg):
     if self._process_message(msg):
         Listener.dispatch(self, msg)