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

Function _stackbrowser

Lib/idlelib/stackviewer.py:116–126  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

114
115
116def _stackbrowser(parent): # htest #
117 from idlelib.pyshell import PyShellFileList
118 top = tk.Toplevel(parent)
119 top.title("Test StackViewer")
120 x, y = map(int, parent.geometry().split('+')[1:])
121 top.geometry("+%d+%d" % (x + 50, y + 175))
122 flist = PyShellFileList(top)
123 try: # to obtain a traceback object
124 intentional_name_error
125 except NameError as e:
126 StackBrowser(top, e, flist=flist, top=top)
127
128
129if __name__ == '__main__':

Callers

nothing calls this directly

Calls 4

PyShellFileListClass · 0.90
StackBrowserFunction · 0.85
titleMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…