Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py

changeset 1131
7781e396c903
parent 1112
8a7d1b9d18db
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
34 Constructor 34 Constructor
35 35
36 @param parent parent widget (QWidget) 36 @param parent parent widget (QWidget)
37 @param fromEric flag indicating a call from within eric5 37 @param fromEric flag indicating a call from within eric5
38 """ 38 """
39 QWidget.__init__(self, parent) 39 super().__init__(parent)
40 self.setupUi(self) 40 self.setupUi(self)
41 41
42 # initialize icons of the tool buttons 42 # initialize icons of the tool buttons
43 self.charButton.setIcon(UI.PixmapCache.getIcon("characters.png")) 43 self.charButton.setIcon(UI.PixmapCache.getIcon("characters.png"))
44 self.anycharButton.setIcon(UI.PixmapCache.getIcon("anychar.png")) 44 self.anycharButton.setIcon(UI.PixmapCache.getIcon("anychar.png"))
483 Constructor 483 Constructor
484 484
485 @param parent parent widget (QWidget) 485 @param parent parent widget (QWidget)
486 @param fromEric flag indicating a call from within eric5 486 @param fromEric flag indicating a call from within eric5
487 """ 487 """
488 QDialog.__init__(self, parent) 488 super().__init__(parent)
489 self.setModal(fromEric) 489 self.setModal(fromEric)
490 self.setSizeGripEnabled(True) 490 self.setSizeGripEnabled(True)
491 491
492 self.__layout = QVBoxLayout(self) 492 self.__layout = QVBoxLayout(self)
493 self.__layout.setMargin(0) 493 self.__layout.setMargin(0)
520 """ 520 """
521 Constructor 521 Constructor
522 522
523 @param parent reference to the parent widget (QWidget) 523 @param parent reference to the parent widget (QWidget)
524 """ 524 """
525 QMainWindow.__init__(self, parent) 525 super().__init__(parent)
526 self.cw = QRegExpWizardWidget(self, fromEric=False) 526 self.cw = QRegExpWizardWidget(self, fromEric=False)
527 size = self.cw.size() 527 size = self.cw.size()
528 self.setCentralWidget(self.cw) 528 self.setCentralWidget(self.cw)
529 self.resize(size) 529 self.resize(size)
530 530

eric ide

mercurial