diff options
Diffstat (limited to 'Demo/tkinter/guido/listtree.py')
-rwxr-xr-x | Demo/tkinter/guido/listtree.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Demo/tkinter/guido/listtree.py b/Demo/tkinter/guido/listtree.py index 625d20e..8db5b60 100755 --- a/Demo/tkinter/guido/listtree.py +++ b/Demo/tkinter/guido/listtree.py @@ -1,7 +1,6 @@ # List a remote app's widget tree (names and classes only) import sys -import string from tkinter import * @@ -13,8 +12,6 @@ def listtree(master, app): def listnodes(list, app, widget, level): klass = list.send(app, 'winfo', 'class', widget) -## i = string.rindex(widget, '.') -## list.insert(END, '%s%s (%s)' % ((level-1)*'. ', widget[i:], klass)) list.insert(END, '%s (%s)' % (widget, klass)) children = list.tk.splitlist( list.send(app, 'winfo', 'children', widget)) |