2004-11-09, 04:25
hi all... im trying to make a yahoo finance stock script for xbmc since it looks like that hasnt been done yet and have a stupid question.
where the second line occurs somewhere in a classes method. im getting errors doing the concatenation and am not sure whats up. i thought that since the first variable was global maybe it was a const type or something but a member variable had the same behavior.
does it have something to do with circular referencing maybe? or maybe strings can just never be changed? i have years of experience in java c and s/390 assembly but am a python ultra newb
second xbmc question:
do labels and buttons behave the same? i mean can you have labels be put into navigation lists and be highlighted and fire oncontrol events? i can't figure out how to... im trying to put the stock results into a table and am going to do it with just a bunch of labels and do the layout manually.... i could have done it with a list if there were color formatting (for the red/green numbers) and tabbing for the aligned columns but you gotta work with what you got :-)... id like to be able to select an individual label so i can pop up a graph or something but am not having success adding it to the navigation struction.
a workaround i thought of if i can't use nav is to add an invisible control or something and let it grab focus and redraw the labels with one highlighted and keep track of which it is manually. changing focus manually back to a real control in the onaction block. if you can follow that idea you see how messy it is and why i want to avoid it. any suggestions will be welcom
id like to get this thing out the door soon and will upload it to the server when i'm done with it... thx all.
-ast
Quote:stocks = 'amd,msft' #a global string
.....
stocks = stocks + ',ibm' #concatenate to string
where the second line occurs somewhere in a classes method. im getting errors doing the concatenation and am not sure whats up. i thought that since the first variable was global maybe it was a const type or something but a member variable had the same behavior.
does it have something to do with circular referencing maybe? or maybe strings can just never be changed? i have years of experience in java c and s/390 assembly but am a python ultra newb
second xbmc question:
do labels and buttons behave the same? i mean can you have labels be put into navigation lists and be highlighted and fire oncontrol events? i can't figure out how to... im trying to put the stock results into a table and am going to do it with just a bunch of labels and do the layout manually.... i could have done it with a list if there were color formatting (for the red/green numbers) and tabbing for the aligned columns but you gotta work with what you got :-)... id like to be able to select an individual label so i can pop up a graph or something but am not having success adding it to the navigation struction.
a workaround i thought of if i can't use nav is to add an invisible control or something and let it grab focus and redraw the labels with one highlighted and keep track of which it is manually. changing focus manually back to a real control in the onaction block. if you can follow that idea you see how messy it is and why i want to avoid it. any suggestions will be welcom
id like to get this thing out the door soon and will upload it to the server when i'm done with it... thx all.
-ast