I have been messing around in python but I don't know how to to make the sets work it looks like this
list=[1,2,3,4,5] TRIAL.SetText(set(list)) [/code:26u512of] ...TRIAL is the name of the text....it doesn't work with frozenset either...nothing appears [code:26u512of] list=[1,2,3,4,5] TRIAL.SetText(frozenset(list)) [/code:26u512of] I've noticed there's a lot of things I can't put in .SetText....is there a way around this? It will help me learn how to apply python in construct
You probably need to convert the the value to a string first. The python str() function should do it.
Develop games in your browser. Powerful, performant & highly capable.
this works perfectly...but for some reason I can't do the same thing with an array..I used TRIAL.SetText(str(Array))
I take it Array is a construct array, in which case it won't do what you want from Python. You need to loop over the construct array to get each value and then either add those values to a python array or a string.