[Tutor] Python Image Library

Alan Gauld alan.gauld at yahoo.co.uk
Fri May 19 13:13:51 EDT 2017


On 19/05/17 15:15, Peter Otten wrote:

> call the destroy() rather than the quit() method. 

Nice!

> 
> However, as your code gets away without calling destroy() I'm still 
> puzzled...

withdraw hides the window then quit ends the mainloop
so the procedure falls through to the end and everything
gets garbage collected.

Its brutal but it works. destroy combines the withdraw
and quit effect in a much more elegant solution.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list