MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _tk_dispatching_helper

Method _tk_dispatching_helper

pager_lib/tqdm/tk.py:178–186  ·  view source on GitHub ↗

determine if Tkinter mainloop is dispatching events

()

Source from the content-addressed store, hash-verified

176
177 @staticmethod
178 def _tk_dispatching_helper():
179 """determine if Tkinter mainloop is dispatching events"""
180 codes = {tkinter.mainloop.__code__, tkinter.Misc.mainloop.__code__}
181 for frame in sys._current_frames().values():
182 while frame:
183 if frame.f_code in codes:
184 return True
185 frame = frame.f_back
186 return False
187
188
189def ttkrange(*args, **kwargs):

Callers 1

__init__Method · 0.95

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected