def __setBackgroundColor(self, state):
     """Sets the search combo background color to reflect the state"""
     setLineEditBackground(self.findtextCombo.lineEdit(),
                           self.__stateColors[state],
                           self.__stateColors[self.BG_IDLE])
Exemplo n.º 2
0
 def __setAnchorInvalid(self):
     """Sets the anchor edit invalid"""
     self.anchorEdit.setToolTip(
         'Anchor is used to refer to it from the other files')
     setLineEditBackground(self.anchorEdit, self.__validInputColor,
                           self.__validInputColor)
Exemplo n.º 3
0
 def __setLinkInvalid(self, msg):
     """Sets the link edit invalid"""
     self.linkEdit.setToolTip(msg)
     setLineEditBackground(self.linkEdit, self.__invalidInputColor,
                           self.__invalidInputColor)
Exemplo n.º 4
0
 def __setAnchorValid(self):
     """Sets the anchor edit valid"""
     self.anchorEdit.setToolTip(
         'Anchor may not contain neither spaces nor tabs')
     setLineEditBackground(self.anchorEdit, self.__invalidInputColor,
                           self.__validInputColor)
Exemplo n.º 5
0
 def __setLinkValid(self):
     """Sets the link edit valid"""
     self.linkEdit.setToolTip(
         'A link to a file or to an external web resource')
     setLineEditBackground(self.linkEdit, self.__validInputColor,
                           self.__validInputColor)