def __onTagMiddleClick(self, event):
     """
     Клик средней кнопкой мыши по тегу
     """
     assert self.__currentTags is not None
     action = TagsConfig(self.__application.config).middleClickAction.value
     self.__runAction(action, event.text)
 def __onTagLeftClick(self, event):
     """
     Клик левой кнопкой мыши по тегу
     """
     assert self.__currentTags is not None
     action = TagsConfig(self.__application.config).leftClickAction.value
     self.__runAction(action, event.text)
Example #3
0
    def __init__(self, parent, application):
        super().__init__(parent)
        self.mainWindowConfig = MainWindowConfig(application.config)
        self.tagsConfig = TagsConfig(application.config)
        self._createGUI()

        self.LoadState()
        self.SetupScrolling()
Example #4
0
    def __loadColors(self):
        config = TagsConfig(Application.config)
        self.__tagNormalFontColor = config.colorFontNormal.value
        self.__tagNormalHoverFontColor = config.colorFontNormalHover.value

        self.__tagSelectedFontColor = config.colorFontSelected.value
        self.__tagSelectedHoverFontColor = config.colorFontSelectedHover.value

        self.__tagSelectedBackColor = config.colorBackSelected.value
Example #5
0
    def __init__(self, parent):
        super(type(self), self).__init__(parent)

        self.ACTIONS_COMBOBOX_WIDTH = 300

        self._actions = [
            (_(u'Search pages with the tag'), TagsConfig.ACTION_SHOW_LIST),
            (_(u'Toggle tag selection'), TagsConfig.ACTION_MARK_TOGGLE),
        ]

        self._config = TagsConfig(Application.config)
        self._createGui()
        self.SetupScrolling()