TimeTracker/TimeTrackerEntryDialog.py

changeset 36
d3312087bb1d
parent 31
db0afa672b75
child 42
37049a04b8fa
equal deleted inserted replaced
34:cec89eb19c5c 36:d3312087bb1d
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the time tracker edit dialog. 7 Module implementing the time tracker edit dialog.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import pyqtSlot, QDateTime, QDate 12 from PyQt4.QtCore import pyqtSlot, QDateTime, QDate
11 from PyQt4.QtGui import QDialog, QDialogButtonBox 13 from PyQt4.QtGui import QDialog, QDialogButtonBox
12 14
13 from .Ui_TimeTrackerEntryDialog import Ui_TimeTrackerEntryDialog 15 from .Ui_TimeTrackerEntryDialog import Ui_TimeTrackerEntryDialog
27 task combo box (list of strings) 29 task combo box (list of strings)
28 @param commentItems list of comment item entries for the 30 @param commentItems list of comment item entries for the
29 comment combo box (list of strings) 31 comment combo box (list of strings)
30 @param parent reference to the parent widget (QWidget) 32 @param parent reference to the parent widget (QWidget)
31 """ 33 """
32 super().__init__(parent) 34 super(TimeTrackerEntryDialog, self).__init__(parent)
33 self.setupUi(self) 35 self.setupUi(self)
34 36
35 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 37 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False)
36 38
37 self.taskCombo.addItems(taskItems) 39 self.taskCombo.addItems(taskItems)

eric ide

mercurial