How to solve "TypeError: list indices must be integers".
顏灝
princismo at gmail.com
Mon Jan 21 11:15:02 EST 2008
This is more details about my problem, which I running my py script
for my project. Programming in pythoncard that we can develop a GUI
based application easily.
I was assigned dialog.colorDialog(self) return value to a result
object, but I suspect that result.color is the attribute of the result
object that can assign to a string variable.
There is a error prompt from python console "TypeError: list indices
must be integers".
Have any suggestion to solve this problem?
When I print result.color, it is print out something like (255,0,0).
How to covert result.color into a string? How to convert a string to
result.color type?
adrian
More information about the Python-list
mailing list