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

Method up_event

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

Source from the content-addressed store, hash-verified

84 self.fill_menu()
85
86 def up_event(self, event):
87 index = self.listbox.index("active")
88 if self.listbox.selection_includes(index):
89 index = index - 1
90 else:
91 index = self.listbox.size() - 1
92 if index < 0:
93 self.listbox.bell()
94 else:
95 self.select(index)
96 self.on_select(index)
97 return "break"
98
99 def down_event(self, event):
100 index = self.listbox.index("active")

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