def new_task(self, ressource_id = 1): TEW = Task_Edit_Window( title = "New Task", project = self, ressource_id = ressource_id, size_hint = (None, None), size = (700, 350) ) TEW.open()
def met2(self): # # This metode will be used to change the width of day columns # self.update_days_dataframe(new_day_width = self.day_width - 10) TEW = Task_Edit_Window( title = "New Task", project = self, size_hint = (None, None), size = (700, 350) ) TEW.open()
def on_touch_down(self, touch, *args): super(TaskItem,self).on_touch_down(touch,*args) # This method triggers when the task object is touched by a click # If the mouse cursor is on the task object when the click occurs then if self.collide_point(touch.x,touch.y): # If it's a double click if touch.is_double_tap: # we create a 'task edit window' TEW = Task_Edit_Window( title = self.get_task_attr('task_name'), project = self.project, task_id = self.task_id, size_hint = (None, None), size = (700, 400) ) # and display it TEW.open()