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

Method down_event

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

Source from the content-addressed store, hash-verified

97 return "break"
98
99 def down_event(self, event):
100 index = self.listbox.index("active")
101 if self.listbox.selection_includes(index):
102 index = index + 1
103 else:
104 index = 0
105 if index >= self.listbox.size():
106 self.listbox.bell()
107 else:
108 self.select(index)
109 self.on_select(index)
110 return "break"
111
112 def select(self, index):
113 self.listbox.focus_set()

Callers

nothing calls this directly

Calls 6

selectMethod · 0.95
on_selectMethod · 0.95
selection_includesMethod · 0.80
indexMethod · 0.45
sizeMethod · 0.45
bellMethod · 0.45

Tested by

no test coverage detected