yes, I already fixed the problem.
-- Forwarded message --
From: 7stud <[EMAIL PROTECTED]>
Date: Aug 24, 2007 1:28 PM
Subject: Re: I can't get value of entry box, Tinker
To: python-list@python.org
Matt McCredie wrote:
> > What/should I, can I do?
>
> Fix you
Matt McCredie wrote:
> > What/should I, can I do?
>
> Fix your code?
>
> > def login():
> > global e2,e1
> > print e2.get()
> > print e1.get()
>
> That should work.
>
> Matt
Try something like this:
import Tkinter as tk
root = tk.Tk()
entry = tk.Entry(root)
button = tk.Button(root, t
> What/should I, can I do?
Fix your code?
> def login():
> global e2,e1
> print e2.get()
> print e1.get()
That should work.
Matt
--
http://mail.python.org/mailman/listinfo/python-list
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,tex