def make_tree_col(event): if event.state != 8: return tv = event.widget if tv.identify_row(event.y) not in tv.selection(): tv.selection_set(tv.identify_row(event.y)) if not tv.selection(): return item = tv.selection()[0] col_name = tv.item(item,"text") if dnd_start(TreeCol(col_name),event): pass
def make_tree_clip(event): if event.state != 8: return tv = event.widget if tv.identify_row(event.y) not in tv.selection(): tv.selection_set(tv.identify_row(event.y)) if not tv.selection(): return item = tv.selection()[0] if tv.item(item,"values")[0] != 'clip': return clip_name = tv.item(item,"values")[1] if dnd_start(TreeClip(clip_name),event): pass
def press(self, event): if dnd_start(self, event): pass
def press(self, event): if dnd_start(TreeClip(self.fname,self.active,self), event): pass