(parent)
| 114 | |
| 115 | |
| 116 | def _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 | |
| 129 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected
searching dependent graphs…