On Sat, 20 Sep 2003 12:11:23 -0400
Baltor <member37516@db forums.com> wrote:
[color=blue]
>
> How do I enter weapondescripti on with a space before it at the end of
> line 3. I tried this, but it is not working:
>
> self.text.inser t(3.0, END, " ", weapondescripti on)[/color]
If you're trying to pass a string that has the value
' weapondescripti on'
you should put quotes around the string, or make weapondescripti on a
variable that has the value ' weapondescripti on'.
Some more background about the project you're working on might help.
"Baltor" <member37516@db forums.com> schrieb im Newsbeitrag
news:3394585.10 64074283@dbforu ms.com...[color=blue]
>
> How do I enter weapondescripti on with a space before it at the end of
> line 3. I tried this, but it is not working:
>
> self.text.inser t(3.0, END, " ", weapondescripti on)[/color]
The syntax is:
insert(start, end, string,tags, string, tags,....)
So weapondescripti on is considered the tag for " ".
Thus you could write e.g.:
insert('3.0', 'end', " ", None, weapondescripti on)
Comment