Kaydet (Commit) 3f757418 authored tarafından Guido van Rossum's avatar Guido van Rossum

Remove unnecessary reference to pyclbr from test() code.

üst ad380551
...@@ -137,15 +137,12 @@ def make_objecttreeitem(labeltext, object, setfunction=None): ...@@ -137,15 +137,12 @@ def make_objecttreeitem(labeltext, object, setfunction=None):
def test(): def test():
import sys import sys
from Tkinter import Toplevel from Tkinter import Toplevel
import pyclbr
import PyShell import PyShell
pyclbr._modules.clear()
root = Toplevel(PyShell.root) root = Toplevel(PyShell.root)
root.configure(bd=0, bg="yellow") root.configure(bd=0, bg="yellow")
root.focus_set() root.focus_set()
sc = ScrolledCanvas(root, bg="white", highlightthickness=0, takefocus=1) sc = ScrolledCanvas(root, bg="white", highlightthickness=0, takefocus=1)
sc.frame.pack(expand=1, fill="both") sc.frame.pack(expand=1, fill="both")
#item = FileTreeItem("C:/windows/desktop")
item = make_objecttreeitem("sys", sys) item = make_objecttreeitem("sys", sys)
node = TreeNode(sc.canvas, None, item) node = TreeNode(sc.canvas, None, item)
node.expand() node.expand()
......
...@@ -436,8 +436,6 @@ class ScrolledCanvas: ...@@ -436,8 +436,6 @@ class ScrolledCanvas:
def test(): def test():
import PyShell import PyShell
import pyclbr
pyclbr._modules.clear()
root = Toplevel(PyShell.root) root = Toplevel(PyShell.root)
root.configure(bd=0, bg="yellow") root.configure(bd=0, bg="yellow")
root.focus_set() root.focus_set()
......
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