src/eric7/EricWidgets/EricMainWindow.py

branch
eric7
changeset 10180
3a595df36c9a
parent 9653
e67609152c5e
child 10248
981456110843
equal deleted inserted replaced
10179:c2125fcab4b8 10180:3a595df36c9a
38 defaults of the given style 38 defaults of the given style
39 @type str 39 @type str
40 """ 40 """
41 # step 1: set the style 41 # step 1: set the style
42 style = None 42 style = None
43 if styleName != "System" and styleName in QStyleFactory.keys(): 43 if styleName != "System" and styleName in QStyleFactory.keys(): # noqa: Y118
44 # __IGNORE_WARNING_Y118__
45 style = QStyleFactory.create(styleName) 44 style = QStyleFactory.create(styleName)
46 if style is None: 45 if style is None:
47 style = QStyleFactory.create(self.defaultStyleName) 46 style = QStyleFactory.create(self.defaultStyleName)
48 if style is not None: 47 if style is not None:
49 QApplication.setStyle(style) 48 QApplication.setStyle(style)

eric ide

mercurial