Beispiel #1
0
    def on_date_button_pressed(self):
        simple_date = datetimeutil.str_date_simplify(self.date_edit.text(), self.info.date_format)
        fixed_date = datetimeutil.fix_date_format(simple_date, self.info.date_format)

        dialog = DateDialog(fixed_date, self)
        dialog.update.connect(self.date_updated)
        dialog.exec_()
Beispiel #2
0
    def on_date_button_pressed(self):
        simple_date = datetimeutil.str_date_simplify(self.date_edit.text(),
                                                     self.info.date_format_num)
        fixed_date = datetimeutil.fix_date_format(simple_date,
                                                  self.info.date_format_num)

        dialog = DateDialog(fixed_date, self)
        dialog.update.connect(self.date_updated)
        dialog.exec_()
Beispiel #3
0
    def edit(self, reminder):
        self.save_button.show()
        self.add_button.hide()
        self.setWindowTitle(_("Edit Reminder"))

        self.database = db.Database(helpers.database_file())
        r = self.database.alarm(reminder)
        self.database.close()

        self.set_data(r.label, datetimeutil.fix_time_format(r.time, self.info.time_format),
            datetimeutil.fix_date_format(r.date, self.info.date_format), r.command, r.notes,
            r.notification, r.dialog, r.boxcar, r.pushbullet_device, r.sound_file, r.sound_length, r.sound_loop)

        self.delete_id = reminder
Beispiel #4
0
    def edit(self, reminder):
        self.save_button.show()
        self.add_button.hide()
        self.setWindowTitle(_("Edit Reminder"))

        self.database = db.Database(helpers.database_file())
        r = self.database.alarm(reminder)
        self.database.close()

        self.set_data(
            r.label, datetimeutil.fix_time_format(r.time,
                                                  self.info.time_format),
            datetimeutil.fix_date_format(r.date, self.info.date_format),
            r.command, r.notes, r.notification, r.dialog, r.boxcar,
            r.pushbullet_device, r.sound_file, r.sound_length, r.sound_loop)

        self.delete_id = reminder