4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to show the output of the ericdoc process. |
7 Module implementing a dialog to show the output of the ericdoc process. |
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.path |
16 import os.path |
11 |
17 |
12 from PyQt4.QtCore import QProcess, QTimer |
18 from PyQt4.QtCore import QProcess, QTimer |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox |
19 from PyQt4.QtGui import QDialog, QDialogButtonBox |
31 Constructor |
37 Constructor |
32 |
38 |
33 @param cmdname name of the documentation generator (string) |
39 @param cmdname name of the documentation generator (string) |
34 @param parent parent widget of this dialog (QWidget) |
40 @param parent parent widget of this dialog (QWidget) |
35 """ |
41 """ |
36 super().__init__(parent) |
42 super(EricdocExecDialog, self).__init__(parent) |
37 self.setModal(True) |
43 self.setModal(True) |
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) |