Newbie Question
Michael Peuser
mpeuser at web.de
Sun Nov 2 09:37:47 EST 2003
"PythonRAD" <infoNOSPAM at PythonRAD.tk
> How can I do for insert a text into Entry widget?
>
> #Set Property Text1
> Text1 = tk.Entry(Form1, width = 20, relief=tk.GROOVE)
> Text1.place(height=17, width=90, x=98, y=15)
>
> Text1.text ="Michelangelo" -----> is It correct?
As it does not work, it is probably *not* correct ;-)
You can accomplish it by:
Text1.delete(0);
Text1.insert(0,"Michelangelo")
(and reading it via Text1.get() )
Or you use 'textvariable'
Kindly
MichaelP
More information about the Python-list
mailing list