4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog starting a process and showing its output. |
7 Module implementing a dialog starting a process and showing its output. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
|
11 try: |
|
12 str = unicode # __IGNORE_WARNING__ |
|
13 except (NameError): |
|
14 pass |
9 |
15 |
10 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, QFileInfo |
16 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, QFileInfo |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractButton, QTextEdit |
17 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractButton, QTextEdit |
12 |
18 |
13 from E5Gui import E5MessageBox, E5FileDialog |
19 from E5Gui import E5MessageBox, E5FileDialog |
42 @keyparam msgError optional string to show upon unsuccessful execution |
48 @keyparam msgError optional string to show upon unsuccessful execution |
43 (string) |
49 (string) |
44 @keyparam saveFilters filename filter string (string) |
50 @keyparam saveFilters filename filter string (string) |
45 @keyparam parent parent widget (QWidget) |
51 @keyparam parent parent widget (QWidget) |
46 """ |
52 """ |
47 super().__init__(parent) |
53 super(DjangoDialog, self).__init__(parent) |
48 self.setupUi(self) |
54 self.setupUi(self) |
49 |
55 |
50 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
56 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
51 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
57 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
52 self.buttonBox.button(QDialogButtonBox.Save).setEnabled(False) |
58 self.buttonBox.button(QDialogButtonBox.Save).setEnabled(False) |