Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

username/password dialog prompt

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


dan.winsor at gmail

Nov 6, 2009, 11:41 AM

Post #1 of 4 (422 views)
Permalink
username/password dialog prompt

Hi,

To preface, I'm a bit of a python novice, but I have been poking
around for the solution for a bit and have found actually too many
leads which has wedged me. I'm looking to impliment a dialog,
preferably using Tkinter, that will prompt for a username and
password. I'd like to have the password field blanked (via show="*"),
and have the dialog return both fields to the command line script that
I'm launching it from. Can someone recommend a good example or
tutorial to work from? Thanks very much in advance.

--
Dan Winsor

Soy un poco loco en el coco.
--
http://mail.python.org/mailman/listinfo/python-list


irmen at -nospam-xs4all

Nov 6, 2009, 1:09 PM

Post #2 of 4 (404 views)
Permalink
Re: username/password dialog prompt [In reply to]

On 6-11-2009 20:41, Dan Winsor wrote:
> Hi,
>
> To preface, I'm a bit of a python novice, but I have been poking
> around for the solution for a bit and have found actually too many
> leads which has wedged me. I'm looking to impliment a dialog,
> preferably using Tkinter, that will prompt for a username and
> password. I'd like to have the password field blanked (via show="*"),
> and have the dialog return both fields to the command line script that
> I'm launching it from. Can someone recommend a good example or
> tutorial to work from? Thanks very much in advance.

My Tkinter is very rusty but perhaps you could do it something like
this: http://pastebin.com/m5e49da19

I forgot how to get rid of the empty root window that appears, sorry.

-irmen

--
http://mail.python.org/mailman/listinfo/python-list


cousinstanley at gmail

Nov 6, 2009, 1:40 PM

Post #3 of 4 (402 views)
Permalink
Re: username/password dialog prompt [In reply to]

>
> My Tkinter is very rusty but perhaps you could do it
> something like this : http://pastebin.com/m5e49da19
>
> I forgot how to get rid of the empty root window
> that appears, sorry.

root.withdraw() # should do it


--
Stanley C. Kitching
Human Being
Phoenix, Arizona

--
http://mail.python.org/mailman/listinfo/python-list


dan.winsor at gmail

Nov 9, 2009, 4:10 AM

Post #4 of 4 (380 views)
Permalink
Re: username/password dialog prompt [In reply to]

On Nov 6, 4:40 pm, Cousin Stanley <cousinstan...@gmail.com> wrote:
> > My Tkinter is very rusty but perhaps you could do it
> > something like this :  http://pastebin.com/m5e49da19
>
> > I forgot how to get rid of the empty root window
> > that appears, sorry.
>
>   root.withdraw()   # should do it

Thanks to you both - exactly what I was looking for. Much
appreciated.


--
Dan Winsor


Soy un poco loco en el coco.


--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.