eric6/Tools/UIPreviewer.py

changeset 8151
8c1445825e7b
parent 8143
2c730d5fd177
child 8205
4a0f1f896341
equal deleted inserted replaced
8150:fc1ae39af8c9 8151:8c1445825e7b
98 QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding) 98 QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
99 self.UIPreviewerLayout.addWidget(self.previewSV) 99 self.UIPreviewerLayout.addWidget(self.previewSV)
100 100
101 self.setCentralWidget(self.cw) 101 self.setCentralWidget(self.cw)
102 102
103 self.styleCombo.activated[str].connect(self.__guiStyleSelected) 103 self.styleCombo.activated[int].connect(self.__guiStyleSelected)
104 104
105 self.__initActions() 105 self.__initActions()
106 self.__initMenus() 106 self.__initMenus()
107 self.__initToolbars() 107 self.__initToolbars()
108 108
287 """ 287 """
288 Private slot called in to enter Whats This mode. 288 Private slot called in to enter Whats This mode.
289 """ 289 """
290 QWhatsThis.enterWhatsThisMode() 290 QWhatsThis.enterWhatsThisMode()
291 291
292 def __guiStyleSelected(self, selectedStyle): 292 def __guiStyleSelected(self, index):
293 """ 293 """
294 Private slot to handle the selection of a GUI style. 294 Private slot to handle the selection of a GUI style.
295 295
296 @param selectedStyle name of the selected style (string) 296 @param index index of the selected entry
297 """ 297 @type int
298 """
299 selectedStyle = self.styleCombo.itemText(index)
298 if self.mainWidget: 300 if self.mainWidget:
299 self.__updateChildren(selectedStyle) 301 self.__updateChildren(selectedStyle)
300 302
301 def __about(self): 303 def __about(self):
302 """ 304 """

eric ide

mercurial