def new_ressource(self): REW = Ressource_Edit_Window( title = "New Ressource", project = self, size_hint = (None, None), size = (700, 200) ) REW.open()
def on_touch_down(self, touch, *args): super(HeaderItem,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' REW = Ressource_Edit_Window( title = self.get_ress_attr('ressource_name'), project = self.project, ressource_id = self.ressource_id, size_hint = (None, None), size = (700, 200) ) # and display it REW.open()