I can't get value of entry box, Tinker

Lamonte Harris pyth0nc0d3r at gmail.com
Fri Aug 24 17:16:12 CEST 2007

I tried w/ my following code:

from Tkinter import *

master = Tk()
Label(master, text="Username").grid(row=0, sticky=W)
Label(master, text="Password").grid(row=1, sticky=W)
e1 = Entry(master)
e2 = Entry(master,show="*")
def login():
    global e2,e1
    print e2
    print e1
e3 = Button(master,text="Login",command=login).grid(row=3, sticky=W+E+S+N)
e1.grid(row=0, column=1)
e2.grid(row=1, column=1)

it outputted something like:

What/should I, can I do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070824/8f1e31a8/attachment.html>

More information about the Python-list mailing list