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

Function _debug_object_browser

Lib/idlelib/debugobj.py:125–138  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

123
124
125def _debug_object_browser(parent): # htest #
126 import sys
127 from tkinter import Toplevel
128 top = Toplevel(parent)
129 top.title("Test debug object browser")
130 x, y = map(int, parent.geometry().split('+')[1:])
131 top.geometry("+%d+%d" % (x + 100, y + 175))
132 top.configure(bd=0, bg="yellow")
133 top.focus_set()
134 sc = ScrolledCanvas(top, bg="white", highlightthickness=0, takefocus=1)
135 sc.frame.pack(expand=1, fill="both")
136 item = make_objecttreeitem("sys", sys)
137 node = TreeNode(sc.canvas, None, item)
138 node.update()
139
140
141if __name__ == '__main__':

Callers

nothing calls this directly

Calls 10

updateMethod · 0.95
ToplevelClass · 0.90
ScrolledCanvasClass · 0.90
TreeNodeClass · 0.90
make_objecttreeitemFunction · 0.85
titleMethod · 0.45
splitMethod · 0.45
configureMethod · 0.45
focus_setMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…