[Tkinter-discuss] I am aking again

jepler at unpythonic.net jepler at unpythonic.net
Tue Jan 31 17:53:06 CET 2006


On Tue, Jan 31, 2006 at 06:34:38AM -0800, Blujacker (sent by Nabble.com) wrote:
> def znic():
>     okno.destroy

In Python, you must write 'f()' to call the function f with no
arguments.  Perhaps you meant to write
    def znic():
        okno.destroy()

destroy() is the correct method to call to get rid of a widget.

Jeff


More information about the Tkinter-discuss mailing list