[wxPython] wxGetPasswordFromUser?

Is the wxGetPasswordFromUser() function implemented in wxPython? I can't get
it to work.

Dan

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Is the wxGetPasswordFromUser() function implemented in wxPython? I can't get
it to work.

It doesn't seem to be there (yet) but you can easily do it yourself in Python code, something like this:

def wxGetPasswordFromUser(message, caption, defaultValue, parent=None)
    st = ""
    dialog = wxTextEntryDialog(parent, message, caption, defaultValue,
                               wxOK | wxCANCEL | wxTE_PASSWORD)
    if dialog.ShowModal() == wxID_OK:
        st = dialog.GetValue();

    return st

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

Thanks Robin.

Dan

···

----- Original Message -----
From: "Robin Dunn" <robin@alldunn.com>
To: <wxpython-users@lists.sourceforge.net>
Sent: Wednesday, January 24, 2001 2:09 PM
Subject: Re: [wxPython] wxGetPasswordFromUser?

Is the wxGetPasswordFromUser() function implemented in wxPython? I can't

get

it to work.

It doesn't seem to be there (yet) but you can easily do it yourself in
Python code, something like this:

def wxGetPasswordFromUser(message, caption, defaultValue, parent=None)
    st = ""
    dialog = wxTextEntryDialog(parent, message, caption, defaultValue,
                               wxOK | wxCANCEL | wxTE_PASSWORD)
    if dialog.ShowModal() == wxID_OK:
        st = dialog.GetValue();

    return st

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users