On 01-Nov-11 09:47, Chris Hare wrote:
Questions:
1. Is this the best way of doing this or is there a better way?
2. How do I exit the main loop when the user has authenticated?

Why stop the main loop and restart it? Typically you'd setup the app, and start the main loop running for the duration. Everything else is handled by the application's logic.

For example, you'd display the login toplevel window, and when it's satisfied, it can trigger the functionality which creates (or displays the pre-created but hidden) application window and dismisses the login toplevel.


--
Steve Willoughby / st...@alchemy.com
"A ship in harbor is safe, but that is not what ships are built for."
PGP Fingerprint 4615 3CCE 0F29 AE6C 8FF4 CA01 73FE 997A 765D 696C
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to