[Tkinter-discuss] 回复: why tkinter do not quit?

Igor Novikov igor.e.novikov at gmail.com
Tue Aug 9 16:20:36 CEST 2011


2011/8/9 守株待兔 <1248283536 at qq.com>

>
>
> what is the difference  between  quit and quit() ??
>

*quit* is a reference to callable but *quit()* is a method call.
The code *command = top.quit *just passes a callable reference,
but *command = top.quit()* passes result of *top.quit()* execution.
Possibly exception could be raised in last case.

-- 
Regards,

Igor Novikov
sK1 Project
http://sk1project.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20110809/cca5a93f/attachment.html>


More information about the Tkinter-discuss mailing list