MCPcopy Index your code
hub / github.com/python/cpython / click_event

Method click_event

Lib/idlelib/scrolledlist.py:56–61  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

54 return self.listbox.get(index)
55
56 def click_event(self, event):
57 self.listbox.activate("@%d,%d" % (event.x, event.y))
58 index = self.listbox.index("active")
59 self.select(index)
60 self.on_select(index)
61 return "break"
62
63 def double_click_event(self, event):
64 index = self.listbox.index("active")

Callers

nothing calls this directly

Calls 4

selectMethod · 0.95
on_selectMethod · 0.95
activateMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected