MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / on_text_motion

Method on_text_motion

brainworkshop.py:2087–2092  ·  view source on GitHub ↗
(self, evt)

Source from the content-addressed store, hash-verified

2085 return
2086
2087 def on_text_motion(self, evt):
2088 if evt == key.MOTION_UP: self.move_selection(steps=-1)
2089 if evt == key.MOTION_DOWN: self.move_selection(steps=1)
2090 if evt == key.MOTION_PREVIOUS_PAGE: self.move_selection(steps=-self.pagesize)
2091 if evt == key.MOTION_NEXT_PAGE: self.move_selection(steps=self.pagesize)
2092 return pyglet.event.EVENT_HANDLED
2093
2094 def on_text(self, evt):
2095 return pyglet.event.EVENT_HANDLED # todo: entering values after select()

Callers

nothing calls this directly

Calls 1

move_selectionMethod · 0.95

Tested by

no test coverage detected