MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / _bind_scroll_events

Method _bind_scroll_events

gui/widgets.py:513–519  ·  view source on GitHub ↗

Bind mouse wheel scroll events for cross-platform compatibility.

(self)

Source from the content-addressed store, hash-verified

511 return self._env_manager.get_modified_keys()
512
513 def _bind_scroll_events(self) -> None:
514 """Bind mouse wheel scroll events for cross-platform compatibility."""
515 self._bind_scroll_to_widget(self)
516 # Also bind to all category frames
517 for frame in self._category_frames.values():
518 self._bind_scroll_to_widget(frame)
519 self._bind_scroll_to_widget(frame.get_content_frame())
520
521 def _bind_scroll_to_widget(self, widget) -> None:
522 """Bind scroll events to a specific widget and its children."""

Callers 1

__init__Method · 0.95

Calls 2

get_content_frameMethod · 0.80

Tested by

no test coverage detected