2015-08-26, 23:57
I'm writing an xml window to suit my needs and I have some text to put in created by a python function. In one specific case I have a numeric result, between 1 and 12. I didn't figure out how to link this result on my label and now that I'm in testing I'm inserting it manually on my custom xml.
Sadly I've discovered that some numbers are shortcuts to menu text. For example the number 1 is Pictures, 2 is music and so on.
How can I add a simple number to my label? Or better how can I link to my txt file where the number is stored?
Edit: I'm trying to use a $VAR. I've created Variables.xml, and I've included it on Includes.xml. Then I've created a variable:
and I've added it on my custom.xml as <label>$VAR[tempo]</label> . No result is shown on my page.
Sadly I've discovered that some numbers are shortcuts to menu text. For example the number 1 is Pictures, 2 is music and so on.
How can I add a simple number to my label? Or better how can I link to my txt file where the number is stored?
Code:
<control type="label">
<top>310</top>
<right>350</right>
<align>center</align>
<font>SuperLargeBold</font>
<textcolor>Highlight</textcolor>
<label>7</label>
</control>
Edit: I'm trying to use a $VAR. I've created Variables.xml, and I've included it on Includes.xml. Then I've created a variable:
Code:
<variable name="tempo">
<value>7</value>
</variable>