def __init__(self, parent): super(ExecDialog, self).__init__(parent) global _ _ = get_() self._formats = [_(u'Link'), _(u'Button')] self.SetTitle(_(u'Inserting (:exec:) command')) self._createGui() self._titleTextBox.SetFocus()
def __init__ (self, parent): super (ExecDialog, self).__init__(parent) global _ _ = get_() self._formats = [_(u'Link'), _(u'Button')] self.SetTitle (_(u'Inserting (:exec:) command')) self._createGui () self._titleTextBox.SetFocus()
def __init__(self, application): self._application = application self._actions = [ CommandExecAction, MacrosPageAction, MacrosHtmlAction, MacrosAttachAction, MacrosFolderAction, ] # MenuItem for ExternalTools submenu self._submenuItem = None global _ _ = get_()
def __init__ (self, application): self._application = application self._actions = [ CommandExecAction, MacrosPageAction, MacrosHtmlAction, MacrosAttachAction, MacrosFolderAction, ] # MenuItem for ExternalTools submenu self._submenuItem = None global _ _ = get_()
def initialize(self): global _ _ = get_() if self._enableExecCommand: from externaltools.commandexec.guicreator import GuiCreator self._application.onWikiParserPrepare += self.__onWikiParserPrepare self._application.onHoverLink += self._onHoverLink self._application.onLinkClick += self.onLinkClick self._application.onPageViewCreate += self.__onPageViewCreate self._application.onPageViewDestroy += self.__onPageViewDestroy self._guiCreator = GuiCreator(self._application) self._guiCreator.initialize() if self._isCurrentWikiPage: self.__onPageViewCreate(self._application.selectedPage)
def initialize (self): global _ _ = get_() if self._enableExecCommand: from externaltools.commandexec.guicreator import GuiCreator self._application.onWikiParserPrepare += self.__onWikiParserPrepare self._application.onHoverLink += self._onHoverLink self._application.onLinkClick += self.onLinkClick self._application.onPageViewCreate += self.__onPageViewCreate self._application.onPageViewDestroy += self.__onPageViewDestroy self._guiCreator = GuiCreator (self._application) self._guiCreator.initialize() if self._isCurrentWikiPage: self.__onPageViewCreate (self._application.selectedPage)
def __init__(self, application): self._application = application global _ _ = get_()