3 # this shows how to spawn off new windows at a button press
11 fred
.label
= Label(fred
, text
="Here's a new window")
14 def createWidgets(self
):
15 self
.QUIT
= Button(self
, text
='QUIT', foreground
='red',
18 self
.QUIT
.pack(side
=LEFT
, fill
=BOTH
)
21 self
.hi_there
= Button(self
, text
='Make a New Window',
22 command
=self
.makeWindow
)
23 self
.hi_there
.pack(side
=LEFT
)
25 def __init__(self
, master
=None):
26 Frame
.__init
__(self
, master
)