MCPcopy Create free account
hub / github.com/secdev/scapy / AutoHideScrollbar

Class AutoHideScrollbar

scapy/modules/ldaphero.py:68–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67
68class AutoHideScrollbar(ttk.Scrollbar):
69 def __init__(self, *args, **kwargs):
70 self.shown = False
71 super(AutoHideScrollbar, self).__init__(*args, **kwargs)
72
73 def set(self, first, last):
74 show = float(first) > 0 or float(last) < 1
75 if show and not self.shown:
76 self.grid(row=0, column=1, sticky="nsew")
77 elif not show and self.shown:
78 self.grid_forget()
79 self.shown = show
80 super(AutoHideScrollbar, self).set(first, last)
81
82
83class BasePopup:

Callers 2

acltableMethod · 0.85
mainMethod · 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…