|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
||||
|
||||
|
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?
Code:
self.text.insert(3.0, END, " ", weapondescription) Thanks.
__________________
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! |
|
#2
|
||||
|
||||
|
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/t...513-methods.htm
Code:
insert(index, items) 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. 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 ![]() Have fun, Mark. |
|
#3
|
||||
|
||||
|
Pythonware.com, I'll check it out.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Text box question? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|