def __init__(self, panel): super(DocumentChooserAction, self).__init__(panel) self._model = None self._document = None self._documents = [] self._currentIndex = -1 self._indices = weakref.WeakKeyDictionary() panel.mainwindow().currentDocumentChanged.connect(self.slotDocumentChanged) documents.documentUpdated.connect(self.slotDocumentUpdated)
def __init__(self, panel): super(ViewdocChooserAction, self).__init__(panel) self._model = None self._viewdoc = None self._viewdocs = [] self._currentIndex = -1 self._indices = weakref.WeakKeyDictionary() panel.mainwindow().currentDocumentChanged.connect(self.slotEditdocChanged) documents.documentUpdated.connect(self.slotEditdocUpdated)
def __init__(self, panel): super(QuickInsertActions, self).__init__(panel.mainwindow()) self.panel = weakref.ref(panel)