Help for a Tkinter newbie
Fredrik Lundh
fredrik at pythonware.com
Mon May 14 12:53:42 EDT 2001
Domenico Barra wrote:
> Sorry boys, I was just now starting to learn Tkinter using
> a tutorial.
>
> This is my problem:
>
> from Tkinter import *
> tk = Tk()
> frame = Frame(tk)
> text = Text(frame,width=30,height=5)
>
> Now, I'm going to write in that text area. How to retrieve
> the contents? Text.get gives me strange errors (bad index),
> and so does Text.delete...
this should work:
text.get(1.0, END)
if it doesn't, please show exactly how you tried to use text.get,
and the exact error message you got.
Cheers /F
More information about the Python-list
mailing list