Exemple #1
0
    def OnAbout(self, event):

        dlg = ui.AboutBox(version=self.version,
                          latest_stable_version=self.latest_stable_version)
        dlg.ShowModal()
        dlg.Destroy()
Exemple #2
0
    work_timer_logic = logic.WorkTimer(work_timer_ui)
    
    to_do_list = ui.ToDoList(master=master, row=0, column=1, expand='both')

    app_monitor_ui = ui.AppMonitor(
        master=master, row=0, column=1, expand='both'
    )

    app_monitor = logic.AppMonitor(app_monitor_ui)
    app_monitor.set_app_list_class(ui.AppList, (master,))
    app_monitor.set_app_edit_class(ui.AppEdit, (master,))
    
    #work_time_viewer = ui.WorkTimeViewer(master=master, expand=True)

    about_box = ui.AboutBox(
        master=master, row=0, column=1, expand='both'
    )

    def ui_state_home():
        global doing_now, work_timer_ui, to_do_list, app_monitor_ui, about_box
        
        doing_now.show()
        work_timer_ui.show()
        to_do_list.hide()
        app_monitor_ui.hide()
        about_box.hide()

    def ui_state_todo():
        global doing_now, work_timer_ui, to_do_list, app_monitor_ui, about_box
        
        doing_now.hide()