Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py

changeset 1131
7781e396c903
parent 1112
8a7d1b9d18db
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
35 Constructor 35 Constructor
36 36
37 @param parent parent widget (QWidget) 37 @param parent parent widget (QWidget)
38 @param fromEric flag indicating a call from within eric5 38 @param fromEric flag indicating a call from within eric5
39 """ 39 """
40 QWidget.__init__(self, parent) 40 super().__init__(parent)
41 self.setupUi(self) 41 self.setupUi(self)
42 42
43 # initialize icons of the tool buttons 43 # initialize icons of the tool buttons
44 self.commentButton.setIcon(UI.PixmapCache.getIcon("comment.png")) 44 self.commentButton.setIcon(UI.PixmapCache.getIcon("comment.png"))
45 self.charButton.setIcon(UI.PixmapCache.getIcon("characters.png")) 45 self.charButton.setIcon(UI.PixmapCache.getIcon("characters.png"))
635 Constructor 635 Constructor
636 636
637 @param parent parent widget (QWidget) 637 @param parent parent widget (QWidget)
638 @param fromEric flag indicating a call from within eric5 638 @param fromEric flag indicating a call from within eric5
639 """ 639 """
640 QDialog.__init__(self, parent) 640 super().__init__(parent)
641 self.setModal(fromEric) 641 self.setModal(fromEric)
642 self.setSizeGripEnabled(True) 642 self.setSizeGripEnabled(True)
643 643
644 self.__layout = QVBoxLayout(self) 644 self.__layout = QVBoxLayout(self)
645 self.__layout.setMargin(0) 645 self.__layout.setMargin(0)
672 """ 672 """
673 Constructor 673 Constructor
674 674
675 @param parent reference to the parent widget (QWidget) 675 @param parent reference to the parent widget (QWidget)
676 """ 676 """
677 QMainWindow.__init__(self, parent) 677 super().__init__(parent)
678 self.cw = PyRegExpWizardWidget(self, fromEric=False) 678 self.cw = PyRegExpWizardWidget(self, fromEric=False)
679 size = self.cw.size() 679 size = self.cw.size()
680 self.setCentralWidget(self.cw) 680 self.setCentralWidget(self.cw)
681 self.resize(size) 681 self.resize(size)
682 682

eric ide

mercurial