34 Constructor |
36 Constructor |
35 |
37 |
36 @param parent parent widget (QWidget) |
38 @param parent parent widget (QWidget) |
37 @param fromEric flag indicating a call from within eric5 |
39 @param fromEric flag indicating a call from within eric5 |
38 """ |
40 """ |
39 super().__init__(parent) |
41 super(PyRegExpWizardWidget, self).__init__(parent) |
40 self.setupUi(self) |
42 self.setupUi(self) |
41 |
43 |
42 # initialize icons of the tool buttons |
44 # initialize icons of the tool buttons |
43 self.commentButton.setIcon(UI.PixmapCache.getIcon("comment.png")) |
45 self.commentButton.setIcon(UI.PixmapCache.getIcon("comment.png")) |
44 self.charButton.setIcon(UI.PixmapCache.getIcon("characters.png")) |
46 self.charButton.setIcon(UI.PixmapCache.getIcon("characters.png")) |
636 Constructor |
638 Constructor |
637 |
639 |
638 @param parent parent widget (QWidget) |
640 @param parent parent widget (QWidget) |
639 @param fromEric flag indicating a call from within eric5 |
641 @param fromEric flag indicating a call from within eric5 |
640 """ |
642 """ |
641 super().__init__(parent) |
643 super(PyRegExpWizardDialog, self).__init__(parent) |
642 self.setModal(fromEric) |
644 self.setModal(fromEric) |
643 self.setSizeGripEnabled(True) |
645 self.setSizeGripEnabled(True) |
644 |
646 |
645 self.__layout = QVBoxLayout(self) |
647 self.__layout = QVBoxLayout(self) |
646 self.__layout.setMargin(0) |
648 self.__layout.setMargin(0) |
673 """ |
675 """ |
674 Constructor |
676 Constructor |
675 |
677 |
676 @param parent reference to the parent widget (QWidget) |
678 @param parent reference to the parent widget (QWidget) |
677 """ |
679 """ |
678 super().__init__(parent) |
680 super(PyRegExpWizardWindow, self).__init__(parent) |
679 self.cw = PyRegExpWizardWidget(self, fromEric=False) |
681 self.cw = PyRegExpWizardWidget(self, fromEric=False) |
680 size = self.cw.size() |
682 size = self.cw.size() |
681 self.setCentralWidget(self.cw) |
683 self.setCentralWidget(self.cw) |
682 self.resize(size) |
684 self.resize(size) |
683 |
685 |