diff options
author | Guido van Rossum <guido@python.org> | 1994-07-06 09:27:00 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-07-06 09:27:00 (GMT) |
commit | 639b8b8d9a11dd7d65442965a8686b58ea0f6d28 (patch) | |
tree | dfb82bc7f7816b0b150b094002b1b7e7124ae9fc | |
parent | e20864d6c2012485a8d1e7975f2f740d48cb2013 (diff) | |
download | cpython-639b8b8d9a11dd7d65442965a8686b58ea0f6d28.zip cpython-639b8b8d9a11dd7d65442965a8686b58ea0f6d28.tar.gz cpython-639b8b8d9a11dd7d65442965a8686b58ea0f6d28.tar.bz2 |
Misc changes by Steen
-rwxr-xr-x | Demo/tkinter/guido/tst.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Demo/tkinter/guido/tst.py b/Demo/tkinter/guido/tst.py index 818d90b..e30fc84 100755 --- a/Demo/tkinter/guido/tst.py +++ b/Demo/tkinter/guido/tst.py @@ -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() |