def showCustom_(self, sender):
        self.startDate = Timings.combineDateWithTime(
                nsDateToDatetime(self.dpkrFrom.dateValue()))

        self.endDate = Timings.combineDateWithTime(
                nsDateToDatetime(self.dpkrTo.dateValue()) +
                    datetime.timedelta(days=1))
        self.generateChart()
    def saveSettings(self):
        userPrefs.workDayLength = fh.hoursToSeconds(
            self.stprWorkHours.intValue())

        userPrefs.workEndTime = fh.nsDateToDatetime(
            self.dpkrWorkStarts.dateValue()).strftime("%H:%M")

        userPrefs.logEditComman = self.edtLogEditCommand.stringValue()

        userPrefs.logDateTimeFormat = self.edtDateTimeFormat.stringValue()

        userPrefs.notificationTime = self.stprNotificationTime.intValue()

        userPrefs.notificationRepeatTime = (
            self.stprNotificationRepeatTime.intValue())

        userPrefs.save()
    def saveSettings(self):
        userPrefs.workDayLength = fh.hoursToSeconds(
                self.stprWorkHours.intValue())

        userPrefs.workEndTime = fh.nsDateToDatetime(
                self.dpkrWorkStarts.dateValue()).strftime("%H:%M")

        userPrefs.logEditComman = self.edtLogEditCommand.stringValue()

        userPrefs.logDateTimeFormat = self.edtDateTimeFormat.stringValue()

        userPrefs.notificationTime = self.stprNotificationTime.intValue()

        userPrefs.notificationRepeatTime = (self.
                stprNotificationRepeatTime.intValue())

        userPrefs.save()