Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2407
b98cc8ee1142
child 2791
a9577f248f04
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the Python re wizard dialog. 7 Module implementing the Python re wizard dialog.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 import os 12 import os
11 import re 13 import re
12 14
13 from PyQt4.QtCore import QFileInfo, pyqtSlot 15 from PyQt4.QtCore import QFileInfo, pyqtSlot
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

eric ide

mercurial