MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / show_debugger_popout_window

Function show_debugger_popout_window

PySimpleGUI/PySimpleGUI.py:24200–24224  ·  view source on GitHub ↗

Shows the smaller "popout" window. Default location is the upper right corner of your screen :param location: Locations (x,y) on the screen to place upper left corner of the window :type location: (int, int) :return: None :rtype: None

(location=(None, None), *args)

Source from the content-addressed store, hash-verified

24198
24199
24200def show_debugger_popout_window(location=(None, None), *args):
24201 """
24202 Shows the smaller "popout" window. Default location is the upper right corner of your screen
24203
24204 :param location: Locations (x,y) on the screen to place upper left corner of the window
24205 :type location: (int, int)
24206 :return: None
24207 :rtype: None
24208 """
24209 if _Debugger.debugger is None:
24210 _Debugger.debugger = _Debugger()
24211 debugger = _Debugger.debugger
24212 frame = inspect.currentframe()
24213 prev_frame = inspect.currentframe().f_back
24214 # frame = inspect.getframeinfo(prev_frame)
24215 # frame, *others = inspect.stack()[1]
24216 try:
24217 debugger.locals = frame.f_back.f_locals
24218 debugger.globals = frame.f_back.f_globals
24219 finally:
24220 del frame
24221 if debugger.popout_window:
24222 debugger.popout_window.Close()
24223 debugger.popout_window = None
24224 debugger._build_floating_window(location=location)
24225
24226
24227def _refresh_debugger():

Callers 1

mainFunction · 0.85

Calls 3

_DebuggerClass · 0.85
CloseMethod · 0.80

Tested by

no test coverage detected