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 |
|
13 except (NameError): |
|
14 pass |
9 |
15 |
10 import os |
16 import os |
11 |
17 |
12 from PyQt4.QtCore import QTimer, QProcess, pyqtSlot, Qt, QProcessEnvironment |
18 from PyQt4.QtCore import QTimer, QProcess, pyqtSlot, Qt, QProcessEnvironment |
13 from PyQt4.QtGui import QLineEdit, QDialog, QDialogButtonBox |
19 from PyQt4.QtGui import QLineEdit, QDialog, QDialogButtonBox |
32 Constructor |
38 Constructor |
33 |
39 |
34 @param text text to be shown by the label (string) |
40 @param text text to be shown by the label (string) |
35 @param parent parent widget (QWidget) |
41 @param parent parent widget (QWidget) |
36 """ |
42 """ |
37 super().__init__(parent) |
43 super(SvnDialog, self).__init__(parent) |
38 self.setupUi(self) |
44 self.setupUi(self) |
39 |
45 |
40 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
46 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
41 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
47 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
42 |
48 |