summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-08 12:48:36 (GMT)
committerGuido van Rossum <guido@python.org>1994-08-08 12:48:36 (GMT)
commitfba65fe13456509b953dad2e5e3ec6fc8e7fe93c (patch)
tree82f9b247e8ceb0299024db24cd1a1f890774daf1 /Demo/tkinter
parentef8f88101a800e4e044e4ee602821a42f64f3dea (diff)
downloadcpython-fba65fe13456509b953dad2e5e3ec6fc8e7fe93c.zip
cpython-fba65fe13456509b953dad2e5e3ec6fc8e7fe93c.tar.gz
cpython-fba65fe13456509b953dad2e5e3ec6fc8e7fe93c.tar.bz2
Tree displaying class
Diffstat (limited to 'Demo/tkinter')
-rw-r--r--Demo/tkinter/Tree.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/Demo/tkinter/Tree.py b/Demo/tkinter/Tree.py
new file mode 100644
index 0000000..010fbd4
--- /dev/null
+++ b/Demo/tkinter/Tree.py
@@ -0,0 +1,23 @@
+from Tkinter import *
+
+class Tree:
+
+ def __init__(self, master, cnf = {}):
+ self.master = master
+ self.outerframe = Frame(self.master,
+ {'name': 'outerframe',
+ Pack: {},
+ })
+ self.innerframe = Frame(self.outerframe,
+ {'name': 'innerframe',
+ Pack: {'side': 'left',
+ 'fill': 'y'},
+ })
+ self.button = Menubutton(self.innerframe,
+ {'name': 'button',
+ Pack: {},
+ })
+ # menu?
+
+ def addchild(self):
+ return Tree(self.outerframe, {})