mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Updated for Python 1.4
This commit is contained in:
parent
c30e95f4b0
commit
89cb67bb64
43 changed files with 731 additions and 961 deletions
|
@ -8,22 +8,19 @@ class Test(Frame):
|
|||
|
||||
def makeWindow(self):
|
||||
fred = Toplevel()
|
||||
fred.label = Label(fred, {'text': "Here's a new window",})
|
||||
fred.label = Label(fred, text="Here's a new window")
|
||||
fred.label.pack()
|
||||
|
||||
def createWidgets(self):
|
||||
self.QUIT = Button(self, {'text': 'QUIT',
|
||||
'fg': 'red',
|
||||
'command': self.quit})
|
||||
self.QUIT = Button(self, text='QUIT', foreground='red',
|
||||
command=self.quit)
|
||||
|
||||
self.QUIT.pack({'side': 'left', 'fill': 'both'})
|
||||
|
||||
self.QUIT.pack(side=LEFT, fill=BOTH)
|
||||
|
||||
# a hello button
|
||||
self.hi_there = Button(self, {'text': 'Make a New Window',
|
||||
'command' : self.makeWindow})
|
||||
self.hi_there.pack({'side': 'left'})
|
||||
|
||||
self.hi_there = Button(self, text='Make a New Window',
|
||||
command=self.makeWindow)
|
||||
self.hi_there.pack(side=LEFT)
|
||||
|
||||
def __init__(self, master=None):
|
||||
Frame.__init__(self, master)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue