--- a/TimeTracker/TimeTrackerEntryDialog.py Sat Sep 28 13:37:07 2013 +0200 +++ b/TimeTracker/TimeTrackerEntryDialog.py Fri Oct 25 18:54:29 2013 +0200 @@ -41,9 +41,11 @@ # The allowed end time (i.e. start date and time plus duration must be # earlier or equal to the start date and time of the current entry. - self.__endDateTime = QDateTime(tracker.getCurrentEntry().getStartDateTime()) + self.__endDateTime = QDateTime( + tracker.getCurrentEntry().getStartDateTime()) - self.durationSpinBox.setMinimum(tracker.getPreferences("MinimumDuration")) + self.durationSpinBox.setMinimum( + tracker.getPreferences("MinimumDuration")) if entry is None: self.setWindowTitle(self.tr("Add Tracker Entry")) @@ -60,19 +62,24 @@ """ dt = self.startDateTimeEdit.dateTime() self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( - dt.addSecs(self.durationSpinBox.value() * 60) <= self.__endDateTime) + dt.addSecs(self.durationSpinBox.value() * 60) <= + self.__endDateTime) @pyqtSlot(QDateTime) def on_startDateTimeEdit_dateTimeChanged(self, date): """ Private slot handling a change of the start date and time. + + @param date start date and time (QDateTime) """ self.__checkOk() @pyqtSlot(int) - def on_durationSpinBox_valueChanged(self, p0): + def on_durationSpinBox_valueChanged(self, value): """ Private slot handling a change of the duration. + + @param value value of the duration spin box (integer) """ self.__checkOk()