a newbie Question??

Gerhard Häring gerhard.nospam at bigfoot.de
Sat Apr 21 20:20:02 EDT 2001


ps54713 wrote:
> 
> Is there a way to encrypt a text box field, coz  i need to do this for
> the password field.
> I shall really appreacite it.

In CGI/HTML? <input type="password" name="user_password">

In wxPython?

#!/usr/bin/env python
from wxPython.wx import *

class MyApp( wxApp ):
    def getPassword( self ):
        # Store password in instance variable
        self.password = wxGetPasswordFromUser( "Please enter password",
"Password dialog", "", NULL )
   
    def OnInit( self ):
        self.getPassword()
        print "The user entered tne password", self.password
        return true

app = MyApp(0)
app.MainLoop()

In TkInter, I do not know.

Gerhard

PS: When asking questions on usenet, you usually get the most useful
answers if the question is clear about which context it refers to (in
your case: which GUI toolkit are you using, or do you want to make a
password dialog with Python/CGI or even console?)
-- 
Sorry for the fake email, please use the real one below to reply.
contact: g e r h a r d @ b i g f o o t . d e
web:     http://highqualdev.com



More information about the Python-list mailing list