def selectDayEvent(self, event): self.selectDay(self.calendar.getDate()) Globals.updateViewFunc()
def sortByPriority(self, event): self.taskList.sorter = lambda task: -task.priority Globals.updateViewFunc()
def sortByUrgency(self, event): self.taskList.sorter = lambda task: -task.urgency() Globals.updateViewFunc()
def sortByEndDate(self, event): self.taskList.sorter = lambda task: task.endDate Globals.updateViewFunc()