[Tkinter-discuss] Returning control from a toplevel window

Guido Carballo-Guerrero charras at me.com
Wed Apr 28 23:21:21 CEST 2010

Wayne, Michael;

This is a sample code that shows what I'm doing. As you can see, even if I don't have a while loop, the picture is not being shown. Am I missing something? What is wrong with my code that I can't open and show the picture in the new Toplevel window?


>The second call to mainloop() is the problem, just remove it and
>everything will work as expected. mainloop() must only be called
>once per application (for the main Tk() window).
>I hope this helps
>Tkinter-discuss mailing list
>Tkinter-discuss at python.org
>End of Tkinter-discuss Digest, Vol 74, Issue 16
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo_jpg_&_toplevel.py
Type: application/octet-stream
Size: 886 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20100428/d90d8ade/attachment-0001.obj>

More information about the Tkinter-discuss mailing list