<html><head></head><body bgcolor="#FFFFFF"><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">On Nov 1, 2011, at 12:47, Chris Hare &lt;<a href="mailto:chare@labr.net">chare@labr.net</a>&gt; wrote:</span><br></div><div><br></div><div></div><blockquote type="cite"><div><div><br></div>I am working on a python Tk program which involves a login window and I am looking for some advice.<div><br></div><div>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. &nbsp;The root window is hidden. &nbsp;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.</div><div><br></div><div>Questions:</div><div>1. &nbsp;Is this the best way of doing this or is there a better way?</div><div>2. &nbsp;How do I exit the main loop when the user has authenticated?</div><div><br></div><div>Thanks</div><div><br><div><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Chris Hare</div><div><a href="mailto:chare@labr.net">chare@labr.net</a></div></span>____________________________________</div></div></div></div></blockquote><blockquote type="cite"><div><span>Tutor maillist &nbsp;- &nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a></span><br><span>To unsubscribe or change subscription options:</span><br><span><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a></span><br></div></blockquote><br><div>Hi, hopefully a more experience hacker can provide clarity, but how secure does this login need to be? I dont much about python in DRAM but your login sounds like it could be easily hacked.&nbsp;</div><div>Alexander</div></body></html>