src/eric7/EricWidgets/EricIconBar.py

branch
eric7
changeset 9951
91faf698afe6
parent 9653
e67609152c5e
child 10278
e26fa3b06f4f
equal deleted inserted replaced
9949:9e2fcf4efa37 9951:91faf698afe6
216 216
217 self.setStyleSheet(EricIconBar.WidgetStyleSheetTemplate.format(color.name())) 217 self.setStyleSheet(EricIconBar.WidgetStyleSheetTemplate.format(color.name()))
218 218
219 label = self.__layout.itemAt(self.__currentIndex) 219 label = self.__layout.itemAt(self.__currentIndex)
220 if label: 220 if label:
221 label.widget().setStyleSheet( 221 widget = label.widget()
222 EricIconBar.LabelStyleSheetTemplate.format(self.__highlightColor.name()) 222 if widget:
223 ) 223 widget.setStyleSheet(
224 EricIconBar.LabelStyleSheetTemplate.format(
225 self.__highlightColor.name()
226 )
227 )
224 228
225 def color(self): 229 def color(self):
226 """ 230 """
227 Public method to return the current color. 231 Public method to return the current color.
228 232

eric ide

mercurial