Re: the difference between mainloop and app.mainloop and root.mainloop?
Thanks. I have seen this in some code snippets, but not have seen the destroy()
root = Tk()
if __name__ == '__main__':
From: tkinter-discuss-bounces+steven.oldner=[hidden email] [mailto:tkinter-discuss-bounces+steven.oldner=[hidden email]] On Behalf Of Michael Lange
Sent: Wednesday, August 24, 2011 1:05 PM
To: [hidden email] Subject: Re: [Tkinter-discuss] the difference between mainloop and app.mainloop and root.mainloop?
Thus spoketh Steve Oldner <[hidden email]>
unto us on Wed, 24 Aug 2011 06:47:51 -0500:
> So all three can be used, but which would be the more 'pythonic' way?
How would I dare to decide this ;) ?
If we look at the relevant parts of the IDLE code we find the following,
and if they do it this way I guess that at least it can't be bad ;)