Re: [Tutor] Error message with testing Tkinter

2005-11-07 Thread Danny Yoo
On Mon, 7 Nov 2005, Double Six wrote: > I'm learning Tkinter with the following code on Mac OS X 10.4: > > from Tkinter import * > from sys import stdout, exit > widget = Button(None, text = 'Hello?', command=(lambda: > stdout.write('Hello?\n') or exit())) > widget.pack() > widget.mainloop() > >

[Tutor] Error message with testing Tkinter

2005-11-07 Thread Double Six
Hi, I'm learning Tkinter with the following code on Mac OS X 10.4: from Tkinter import * from sys import stdout, exit widget = Button(None, text = 'Hello?', command=(lambda: stdout.write('Hello?\n') or exit())) widget.pack() widget.mainloop() I do successfully get a GUI with a button, but the pr