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

Method remote_stack_viewer

Lib/idlelib/pyshell.py:636–651  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

634 return
635
636 def remote_stack_viewer(self):
637 from idlelib import debugobj_r
638 oid = self.rpcclt.remotequeue("exec", "stackviewer", ("flist",), {})
639 if oid is None:
640 self.tkconsole.root.bell()
641 return
642 item = debugobj_r.StubObjectTreeItem(self.rpcclt, oid)
643 from idlelib.tree import ScrolledCanvas, TreeNode
644 top = Toplevel(self.tkconsole.root)
645 theme = idleConf.CurrentTheme()
646 background = idleConf.GetHighlight(theme, 'normal')['background']
647 sc = ScrolledCanvas(top, bg=background, highlightthickness=0)
648 sc.frame.pack(expand=1, fill="both")
649 node = TreeNode(sc.canvas, None, item)
650 node.expand()
651 # XXX Should GC the remote tree when closing the window
652
653 gid = 0
654

Callers 2

poll_subprocessMethod · 0.95
open_stack_viewerMethod · 0.80

Calls 9

expandMethod · 0.95
ScrolledCanvasClass · 0.90
TreeNodeClass · 0.90
ToplevelClass · 0.85
remotequeueMethod · 0.80
CurrentThemeMethod · 0.80
GetHighlightMethod · 0.80
bellMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected