4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to enter the data for a graft session. |
7 Module implementing a dialog to enter the data for a graft session. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import pyqtSlot, QDateTime |
12 from PyQt4.QtCore import pyqtSlot, QDateTime |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox |
12 |
14 |
13 from .Ui_HgGraftDialog import Ui_HgGraftDialog |
15 from .Ui_HgGraftDialog import Ui_HgGraftDialog |
22 Constructor |
24 Constructor |
23 |
25 |
24 @param vcs reference to the VCS object (Hg) |
26 @param vcs reference to the VCS object (Hg) |
25 @param parent reference to the parent widget (QWidget) |
27 @param parent reference to the parent widget (QWidget) |
26 """ |
28 """ |
27 super().__init__(parent) |
29 super(HgGraftDialog, self).__init__(parent) |
28 self.setupUi(self) |
30 self.setupUi(self) |
29 |
31 |
30 self.dateTimeEdit.setDateTime(QDateTime.currentDateTime()) |
32 self.dateTimeEdit.setDateTime(QDateTime.currentDateTime()) |
31 |
33 |
32 if vcs.version < (2, 3): |
34 if vcs.version < (2, 3): |