September 15th, 2003, 09:13 PM
Text box question?
So if i want to enter weapondescription with a space before it at the end of line 3, is this code correct?
self.text.insert(3.0, END, " ", weapondescription)
Before you criticize someone, walk a mile in their shoes, that way when you do criticize them, you're a mile away and you have their shoes!
September 16th, 2003, 02:48 AM
Does it work Baltor? I've looked at the docs on Pythonware.com and it seems to have the wrong number or arguments.. Here's the info I found on the insert method from http://www.pythonware.com/library/tk...13-methods.htm
You might want to mess around with the format for a while and see what works.. but you shouldn't use ',' with strings inside functions i'd try using '+' instead or use string formatting i.e ' %s' % ('string'). Both of which look nicer to me anyway
Insert one or more items at given index (this works as for Python lists; index 0 is before the first item). Use END to append items to the list. Use ACTIVE to insert items before the the active (underlined) item.
September 16th, 2003, 04:28 PM
Pythonware.com, I'll check it out.