summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter/Tree.py
blob: 010fbd4796f0ab5ed8d620e360ccd06f80a5ac2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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, {})