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

Class AutoHideScrollbar

Lib/idlelib/textview.py:12–28  ·  view source on GitHub ↗

A scrollbar that is automatically hidden when not needed. Only the grid geometry manager is supported.

Source from the content-addressed store, hash-verified

10
11
12class AutoHideScrollbar(Scrollbar):
13 """A scrollbar that is automatically hidden when not needed.
14
15 Only the grid geometry manager is supported.
16 """
17 def set(self, lo, hi):
18 if float(lo) > 0.0 or float(hi) < 1.0:
19 self.grid()
20 else:
21 self.grid_remove()
22 super().set(lo, hi)
23
24 def pack(self, **kwargs):
25 raise TclError(f'{self.__class__.__name__} does not support "pack"')
26
27 def place(self, **kwargs):
28 raise TclError(f'{self.__class__.__name__} does not support "place"')
29
30
31class ScrollableTextFrame(Frame):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…