Insert into text field?

Michael Peuser mpeuser at web.de
Sat Sep 20 17:44:06 EDT 2003


"Baltor" <member37516 at dbforums.com> schrieb im Newsbeitrag
news:3394585.1064074283 at dbforums.com...
>
> How do I enter weapondescription with a space before it at the end of
> line 3. I tried this, but it is not working:
>
> self.text.insert(3.0, END, " ", weapondescription)

The syntax is:
   insert(start, end, string,tags, string, tags,....)

So weapondescription is considered the tag for " ".
Thus you could write e.g.:
  insert('3.0', 'end', " ", None, weapondescription)

Kindly
MichaelP









More information about the Python-list mailing list