4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog showing the available routes. |
7 Module implementing a dialog showing the available routes. |
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 QProcess, QTimer, pyqtSlot, Qt, QCoreApplication |
18 from PyQt4.QtCore import QProcess, QTimer, pyqtSlot, Qt, QCoreApplication |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QLineEdit, QTreeWidgetItem |
19 from PyQt4.QtGui import QDialog, QDialogButtonBox, QLineEdit, QTreeWidgetItem |
28 Constructor |
34 Constructor |
29 |
35 |
30 @param project reference to the project object (ProjectPyramid.Project.Project) |
36 @param project reference to the project object (ProjectPyramid.Project.Project) |
31 @param parent reference to the parent widget (QWidget) |
37 @param parent reference to the parent widget (QWidget) |
32 """ |
38 """ |
33 super().__init__(parent) |
39 super(PyramidRoutesDialog, self).__init__(parent) |
34 self.setupUi(self) |
40 self.setupUi(self) |
35 |
41 |
36 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
42 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
37 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
43 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
38 |
44 |