Remove unnecessary reference to pyclbr from test() code.
This commit is contained in:
parent
ad380551f6
commit
3f75741844
|
@ -137,15 +137,12 @@ def make_objecttreeitem(labeltext, object, setfunction=None):
|
|||
def test():
|
||||
import sys
|
||||
from Tkinter import Toplevel
|
||||
import pyclbr
|
||||
import PyShell
|
||||
pyclbr._modules.clear()
|
||||
root = Toplevel(PyShell.root)
|
||||
root.configure(bd=0, bg="yellow")
|
||||
root.focus_set()
|
||||
sc = ScrolledCanvas(root, bg="white", highlightthickness=0, takefocus=1)
|
||||
sc.frame.pack(expand=1, fill="both")
|
||||
#item = FileTreeItem("C:/windows/desktop")
|
||||
item = make_objecttreeitem("sys", sys)
|
||||
node = TreeNode(sc.canvas, None, item)
|
||||
node.expand()
|
||||
|
|
|
@ -436,8 +436,6 @@ class ScrolledCanvas:
|
|||
|
||||
def test():
|
||||
import PyShell
|
||||
import pyclbr
|
||||
pyclbr._modules.clear()
|
||||
root = Toplevel(PyShell.root)
|
||||
root.configure(bd=0, bg="yellow")
|
||||
root.focus_set()
|
||||
|
|
Loading…
Reference in New Issue