eric7/EricWidgets/EricTextEditSearchWidget.py

branch
eric7
changeset 8859
64252c7bfb87
parent 8858
a70a980e7d4f
child 8866
a6024873a0c0
equal deleted inserted replaced
8858:a70a980e7d4f 8859:64252c7bfb87
456 errors. 456 errors.
457 457
458 @param error flag indicating an error condition 458 @param error flag indicating an error condition
459 @type bool 459 @type bool
460 """ 460 """
461 if error: 461 styleSheet = (
462 styleSheet = "color: #000000; background-color: #ff6666" 462 "color: #000000; background-color: #ff6666"
463 else: 463 if error else
464 styleSheet = ( 464 f"color: {self.__defaultTextColor};"
465 f"color: {self.__defaultTextColor};" 465 f" background-color: {self.__defaultBaseColor}"
466 f" background-color: {self.__defaultBaseColor}" 466 )
467 )
468 self.findtextCombo.setStyleSheet(styleSheet) 467 self.findtextCombo.setStyleSheet(styleSheet)
469 468
470 def __findTextFinished(self, result): 469 def __findTextFinished(self, result):
471 """ 470 """
472 Private slot handling the findTextFinished signal of the web page. 471 Private slot handling the findTextFinished signal of the web page.

eric ide

mercurial