4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to enter the data for the 'loaddata' command. |
7 Module implementing a dialog to enter the data for the 'loaddata' command. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import pyqtSlot |
12 from PyQt4.QtCore import pyqtSlot |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox |
12 |
14 |
13 from E5Gui import E5FileDialog |
15 from E5Gui import E5FileDialog |
26 Constructor |
28 Constructor |
27 |
29 |
28 @param project reference to the Django project object |
30 @param project reference to the Django project object |
29 @param parent reference to the parent widget (QWidget) |
31 @param parent reference to the parent widget (QWidget) |
30 """ |
32 """ |
31 super().__init__(parent) |
33 super(DjangoLoaddataDataDialog, self).__init__(parent) |
32 self.setupUi(self) |
34 self.setupUi(self) |
33 |
35 |
34 self.__project = project |
36 self.__project = project |
35 |
37 |
36 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
38 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |