From: Guido van Rossum Date: Wed, 6 Jul 1994 09:27:00 +0000 (+0000) Subject: Misc changes by Steen X-Git-Tag: v1.1~274 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=639b8b8d9a11dd7d65442965a8686b58ea0f6d28;p=thirdparty%2FPython%2Fcpython.git Misc changes by Steen --- diff --git a/Demo/tkinter/guido/tst.py b/Demo/tkinter/guido/tst.py index 818d90bf659e..e30fc8429090 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()