2015-03-16, 21:51
Dear all,
I am having a hard time trying to set a controlprogress value directly in an xml file. I know I can use .setPercent(x) from python to set the percent of the controlprogress however this control "belongs" to a listitem and its percent should be a property of this listitem.
Supose I want to set the percent of this control (333) as 40% for instance:
I tried to use:
No luck.
Any help would be appreciated.
Cheers[/quote]
I am having a hard time trying to set a controlprogress value directly in an xml file. I know I can use .setPercent(x) from python to set the percent of the controlprogress however this control "belongs" to a listitem and its percent should be a property of this listitem.
Supose I want to set the percent of this control (333) as 40% for instance:
PHP Code:
<control type="progress" id="333">
<description>Progressbar</description>
<left>45</left>
<top>187</top>
<width>180</width>
<height>16</height>
<colordiffuse>88FFFFFF</colordiffuse>
<info>$INFO[ListItem.Property(my_percent)]</info>
<texturebg border="2">osd/texturebg2.png</texturebg>
</control>
I tried to use:
PHP Code:
<info>40</info>
PHP Code:
<info>0.4</info>
PHP Code:
<info>40.000</info>
No luck.
Any help would be appreciated.
Cheers[/quote]