[Tutor] login window using Tk

Joel M. joelmontes01 at gmail.com
Tue Nov 1 18:38:04 CET 2011


I am also intrested in this topic.

Chris were you thinking of using the window.hide() method?

-Joel M
On Nov 1, 2011 1:21 PM, "Chris Hare" <chare at labr.net> wrote:

>
> I am working on a python Tk program which involves a login window and I am
> looking for some advice.
>
> Currently the code I have creates a window (Toplevel) where the login
> controls are and I am running that using a main loop for the window.  The
> root window is hidden.  The objective is that when the user ha successfully
> authenticated, the login window is closed or the main loop os exited and
> then the root window is shown and the main loop started for the actual
> application.
>
> 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?
>
> Thanks
>
> Chris Hare
> chare at labr.net
> http://www.labr.net
>
>
>
> Chris Hare
> chare at labr.net
> http://www.labr.net
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111101/591f4c9e/attachment.html>


More information about the Tutor mailing list