Kaydet (Commit) 864e1a64 authored tarafından Terry Jan Reedy's avatar Terry Jan Reedy

Issue #24790: Remove extraneous code (which also create 2 & 3 conflicts).

üst c9a5a19e
...@@ -10,8 +10,7 @@ from idlelib.PyShell import PyShellFileList ...@@ -10,8 +10,7 @@ from idlelib.PyShell import PyShellFileList
def StackBrowser(root, flist=None, tb=None, top=None): def StackBrowser(root, flist=None, tb=None, top=None):
if top is None: if top is None:
from Tkinter import Toplevel top = tk.Toplevel(root)
top = Toplevel(root)
sc = ScrolledCanvas(top, bg="white", highlightthickness=0) sc = ScrolledCanvas(top, bg="white", highlightthickness=0)
sc.frame.pack(expand=1, fill="both") sc.frame.pack(expand=1, fill="both")
item = StackTreeItem(flist, tb) item = StackTreeItem(flist, tb)
...@@ -108,12 +107,9 @@ class VariablesTreeItem(ObjectTreeItem): ...@@ -108,12 +107,9 @@ class VariablesTreeItem(ObjectTreeItem):
def IsExpandable(self): def IsExpandable(self):
return len(self.object) > 0 return len(self.object) > 0
def keys(self):
return self.object.keys()
def GetSubList(self): def GetSubList(self):
sublist = [] sublist = []
for key in self.keys(): for key in self.object.keys():
try: try:
value = self.object[key] value = self.object[key]
except KeyError: except KeyError:
...@@ -124,7 +120,7 @@ class VariablesTreeItem(ObjectTreeItem): ...@@ -124,7 +120,7 @@ class VariablesTreeItem(ObjectTreeItem):
sublist.append(item) sublist.append(item)
return sublist return sublist
def _stack_viewer(parent): def _stack_viewer(parent): # htest #
root = tk.Tk() root = tk.Tk()
root.title("Test StackViewer") root.title("Test StackViewer")
width, height, x, y = list(map(int, re.split('[x+]', parent.geometry()))) width, height, x, y = list(map(int, re.split('[x+]', parent.geometry())))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment