eric7/Preferences/ConfigurationPages/WebBrowserInterfacePage.py

branch
eric7
changeset 8761
f05818ae6431
parent 8358
144a6b854f70
child 8875
67c3ea933787
equal deleted inserted replaced
8760:8f3ee84ae342 8761:f05818ae6431
55 def __populateStyleCombo(self): 55 def __populateStyleCombo(self):
56 """ 56 """
57 Private method to populate the style combo box. 57 Private method to populate the style combo box.
58 """ 58 """
59 curStyle = Preferences.getUI("Style") 59 curStyle = Preferences.getUI("Style")
60 styles = sorted(list(QStyleFactory.keys())) 60 styles = sorted(QStyleFactory.keys())
61 self.styleComboBox.addItem(self.tr('System'), "System") 61 self.styleComboBox.addItem(self.tr('System'), "System")
62 for style in styles: 62 for style in styles:
63 self.styleComboBox.addItem(style, style) 63 self.styleComboBox.addItem(style, style)
64 currentIndex = self.styleComboBox.findData(curStyle) 64 currentIndex = self.styleComboBox.findData(curStyle)
65 if currentIndex == -1: 65 if currentIndex == -1:

eric ide

mercurial