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

Method update_mousewheel

Lib/turtledemo/__main__.py:271–277  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

269 return 'break'
270
271 def update_mousewheel(self, event):
272 # For wheel up, event.delta = 120 on Windows, -1 on darwin.
273 # X-11 sends Control-Button-4 event instead.
274 if (event.delta < 0) == (not darwin):
275 return self.decrease_size()
276 else:
277 return self.increase_size()
278
279 def configGUI(self, start, stop, clear, txt="", color="blue"):
280 if darwin: # Leave Mac button colors alone - #44254.

Callers

nothing calls this directly

Calls 2

decrease_sizeMethod · 0.95
increase_sizeMethod · 0.95

Tested by

no test coverage detected