Lines Matching refs:widget
39 x, y, widget = event.x, event.y, event.widget
40 elem = widget.identify(x, y)
41 index = widget.index("@%d,%d" % (x, y))
44 widget.state(['pressed'])
45 widget.pressed_index = index
48 x, y, widget = event.x, event.y, event.widget
50 if not widget.instate(['pressed']):
53 elem = widget.identify(x, y)
54 index = widget.index("@%d,%d" % (x, y))
56 if "close" in elem and widget.pressed_index == index:
57 widget.forget(index)
58 widget.event_generate("<<NotebookClosedTab>>")
60 widget.state(["!pressed"])
61 widget.pressed_index = None