Newbie: wxPython GUI Help - Simple Login System

ryan scott ryan.scott at sympatico.ca
Thu Nov 27 08:46:38 EST 2003


Hi Trinity,

To get the value of the edit box you would use the GetValue method like so:

editBox.GetValue()

Ryan

Trinity wrote:
> Hi
> I am a new user to python and programming in general. I have been
> experimenting with wxPython, creating simple things like a notepad
> etc. I wanted to build a small program, a login system, just to help
> me learn to use wxPython. However, I cannot work out how to read from
> an edit box, or a user input box. For instance:
> 
> pass = testing
> uPass = editBox
> if (pass == uPass):
>    function
> 
> So when i type in the user name, and password, then press the login
> button, I want it to check to see if the user name and login is
> correct. I am not sure how to read the current value of the editBox
> though.
> 
> I hope that makes some kind of sense. 
> Thanks,
> Trinity





More information about the Python-list mailing list