Misc changes by Steen

This commit is contained in:
Guido van Rossum 1994-07-06 09:27:00 +00:00
parent e20864d6c2
commit 639b8b8d9a
1 changed files with 5 additions and 6 deletions

View File

@ -6,13 +6,12 @@ def do_hello():
print 'Hello world!'
class Quit(Button):
def action(self):
self.quit()
def __init__(self, master=None, cnf={}):
Button.__init__(self, master,
{'text': 'Quit',
'command': self.action})
Button.config(self, cnf)
({'name': 'quit',
'text': 'Quit',
'command': self.quit},
cnf))
class Stuff(Canvas):
def enter(self, e):
@ -77,5 +76,5 @@ test.master.maxsize(500, 500)
test.testing.invoke()
# Use the -i option and type ^C to get a prompt
test.mainloop()
mainloop()