Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.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 QRegExp wizard dialog. 7 Module implementing the QRegExp wizard dialog.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 import os 12 import os
11 13
12 from PyQt4.QtCore import QFileInfo, QRegExp, Qt, pyqtSlot, qVersion 14 from PyQt4.QtCore import QFileInfo, QRegExp, Qt, pyqtSlot, qVersion
13 from PyQt4.QtGui import QWidget, QDialog, QApplication, QClipboard, QTextCursor, \ 15 from PyQt4.QtGui import QWidget, QDialog, QApplication, QClipboard, QTextCursor, \
33 Constructor 35 Constructor
34 36
35 @param parent parent widget (QWidget) 37 @param parent parent widget (QWidget)
36 @param fromEric flag indicating a call from within eric5 38 @param fromEric flag indicating a call from within eric5
37 """ 39 """
38 super().__init__(parent) 40 super(QRegExpWizardWidget, self).__init__(parent)
39 self.setupUi(self) 41 self.setupUi(self)
40 42
41 # initialize icons of the tool buttons 43 # initialize icons of the tool buttons
42 # regexp tool buttons 44 # regexp tool buttons
43 self.charButton.setIcon(UI.PixmapCache.getIcon("characters.png")) 45 self.charButton.setIcon(UI.PixmapCache.getIcon("characters.png"))
623 Constructor 625 Constructor
624 626
625 @param parent parent widget (QWidget) 627 @param parent parent widget (QWidget)
626 @param fromEric flag indicating a call from within eric5 628 @param fromEric flag indicating a call from within eric5
627 """ 629 """
628 super().__init__(parent) 630 super(QRegExpWizardDialog, self).__init__(parent)
629 self.setModal(fromEric) 631 self.setModal(fromEric)
630 self.setSizeGripEnabled(True) 632 self.setSizeGripEnabled(True)
631 633
632 self.__layout = QVBoxLayout(self) 634 self.__layout = QVBoxLayout(self)
633 self.__layout.setMargin(0) 635 self.__layout.setMargin(0)
660 """ 662 """
661 Constructor 663 Constructor
662 664
663 @param parent reference to the parent widget (QWidget) 665 @param parent reference to the parent widget (QWidget)
664 """ 666 """
665 super().__init__(parent) 667 super(QRegExpWizardWindow, self).__init__(parent)
666 self.cw = QRegExpWizardWidget(self, fromEric=False) 668 self.cw = QRegExpWizardWidget(self, fromEric=False)
667 size = self.cw.size() 669 size = self.cw.size()
668 self.setCentralWidget(self.cw) 670 self.setCentralWidget(self.cw)
669 self.resize(size) 671 self.resize(size)
670 672

eric ide

mercurial