Re: Newbie Question
From: Michael Peuser (mpeuser_at_web.de)
Date: 11/02/03
- Next message: Mel Wilson: "Re: None"
- Previous message: Michael Peuser: "Re: Tkinter pack bug in Python 2.3"
- In reply to: PythonRAD: "Newbie Question"
- Next in thread: PythonRAD: "Re: Newbie Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 2 Nov 2003 15:37:47 +0100
"PythonRAD" <infoNOSPAM@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
- Next message: Mel Wilson: "Re: None"
- Previous message: Michael Peuser: "Re: Tkinter pack bug in Python 2.3"
- In reply to: PythonRAD: "Newbie Question"
- Next in thread: PythonRAD: "Re: Newbie Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]