Insert into text field?

Matthew Wilson mwilson at sarcastic-horse.com
Sat Sep 20 13:59:31 EDT 2003


On Sat, 20 Sep 2003 12:11:23 -0400
Baltor <member37516 at dbforums.com> wrote:

> 
> 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)


If you're trying to pass a string that has the value 

'  weapondescription'

you should put quotes around the string, or make weapondescription a
variable that has the value ' weapondescription'.

Some more background about the project you're working on might help.





More information about the Python-list mailing list