Problem deleting text in TK widget
Russell E. Owen
owen at astroNOJNK.washington.edu.invalid
Thu Jul 27 16:31:11 EDT 2000
In article <8lpvj7$v1h$1 at nnrp1.deja.com>, dogboy777 at my-deja.com wrote:
I don't think you are indexing the text correctly. Text widgets want
"line.character", though many other options are available (such as
"end", "@x,y".... See the superb Tk introduction
<http://www.pythonware.com/library/tkinter/introduction/index.htm> for a
very nice description.
-- Russell
>I'm trying to delete text in a TK Text field, and I'm getting an error I
>don't understand. The code is:
>
> self.logarea = Text(master, height=35, width=30)
> self.logarea.insert(END, 'This is a test')
> self.logarea.delete(1,3)
>
>The resulting error...
More information about the Python-list
mailing list