[Tutor] login window using Tk

Justin Straube design at justinstraube.com
Wed Nov 2 01:16:24 CET 2011


On 11/1/2011 3:28 PM, Chris Hare wrote:
>
> Good feedback Alan, thanks.
>
> I wasn't using the root window to hold the login form, although I
> suppose I could. I guess where I am stuck is the login to control
> displaying the login window, and hiding it to display the actual
> application window once the user has authenticated.
>
> Chris Hare
> chare at labr.net <mailto:chare at labr.net>
> http://www.labr.net

Hi Chris,

Have you looked into using a Frame to hold you input fields, and then 
using .destroy() to remove it upon successful login?

This would allow you to not have to worry about hiding windows, as you 
can just reuse the same root window.

Im just a hobbyist, so if there are reasons not to use this approach, 
I'd be interested in why.

Justin


More information about the Tutor mailing list