mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #25507: Move 4 objects from pyshell to run and switch inports.
This removes one problem inport and reduces len(sys.modules) by 37.
This commit is contained in:
parent
ce7b27d169
commit
6cf0e13b65
3 changed files with 114 additions and 110 deletions
|
@ -6,7 +6,6 @@ import tkinter as tk
|
|||
|
||||
from idlelib.tree import TreeNode, TreeItem, ScrolledCanvas
|
||||
from idlelib.debugobj import ObjectTreeItem, make_objecttreeitem
|
||||
from idlelib.pyshell import PyShellFileList
|
||||
|
||||
def StackBrowser(root, flist=None, tb=None, top=None):
|
||||
if top is None:
|
||||
|
@ -121,6 +120,7 @@ class VariablesTreeItem(ObjectTreeItem):
|
|||
return sublist
|
||||
|
||||
def _stack_viewer(parent): # htest #
|
||||
from idlelib.pyshell import PyShellFileList
|
||||
top = tk.Toplevel(parent)
|
||||
top.title("Test StackViewer")
|
||||
x, y = map(int, parent.geometry().split('+')[1:])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue