Project/NewDialogClassDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to enter the data for a new dialog class file. 7 Module implementing a dialog to enter the data for a new dialog class file.
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 QDir, pyqtSlot 14 from PyQt4.QtCore import QDir, pyqtSlot
13 from PyQt4.QtGui import QDialog, QDialogButtonBox 15 from PyQt4.QtGui import QDialog, QDialogButtonBox
29 @param defaultClassName proposed name for the new class (string) 31 @param defaultClassName proposed name for the new class (string)
30 @param defaultFile proposed name for the source file (string) 32 @param defaultFile proposed name for the source file (string)
31 @param defaultPath default path for the new file (string) 33 @param defaultPath default path for the new file (string)
32 @param parent parent widget if the dialog (QWidget) 34 @param parent parent widget if the dialog (QWidget)
33 """ 35 """
34 super().__init__(parent) 36 super(NewDialogClassDialog, self).__init__(parent)
35 self.setupUi(self) 37 self.setupUi(self)
36 38
37 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) 39 self.okButton = self.buttonBox.button(QDialogButtonBox.Ok)
38 self.okButton.setEnabled(False) 40 self.okButton.setEnabled(False)
39 41

eric ide

mercurial