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

Function StackBrowser

Lib/idlelib/stackviewer.py:11–19  ·  view source on GitHub ↗
(root, exc, flist=None, top=None)

Source from the content-addressed store, hash-verified

9from idlelib.tree import TreeNode, TreeItem, ScrolledCanvas
10
11def StackBrowser(root, exc, flist=None, top=None):
12 global sc, item, node # For testing.
13 if top is None:
14 top = tk.Toplevel(root)
15 sc = ScrolledCanvas(top, bg="white", highlightthickness=0)
16 sc.frame.pack(expand=1, fill="both")
17 item = StackTreeItem(exc, flist)
18 node = TreeNode(sc.canvas, None, item)
19 node.expand()
20
21
22class StackTreeItem(TreeItem):

Callers 2

open_stack_viewerMethod · 0.90
_stackbrowserFunction · 0.85

Calls 5

expandMethod · 0.95
ScrolledCanvasClass · 0.90
TreeNodeClass · 0.90
StackTreeItemClass · 0.85
packMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…