PDA

View Full Version : Question About Setting Labels



rugby471
August 10th, 2009, 12:40 PM
Hi Guys,

I am currently writing an application and one of the things it needs to do is fetch some data and write it to a textbox.

If I have a string called 'string1' and I wish to write it to the textbox with the xml as below:

<!--Main Textbox-->
<control type="textbox" id="201">
<!--Main Textbox Content-->
<label>Foo</label>
<posx>40</posx>
<posy>40</posy>
<width>950</width>
<height>380</height>
<font>font21</font>
<textcolor>black</textcolor>
<pagecontrol>203</pagecontrol>
</control>

How would I do this in python? :confused:

Thanks beforehand for your help ! :-)

rockboxee
August 20th, 2009, 01:16 PM
Hi,
I had the same problem and found this snippet when grepping for SetLabel in the existing apps.

xbmc.executebuiltin('Control.SetLabel(50,hulu: available)')

Seems to be working

rockboxee
August 20th, 2009, 01:45 PM
Hi,
I had the same problem and found this snippet when grepping for SetLabel in the existing apps.

xbmc.executebuiltin('Control.SetLabel(50,hulu: available)')

Seems to be working

Make sure to replace any comma with $COMMA in the label text

rugby471
August 21st, 2009, 12:39 AM
Make sure to replace any comma with $COMMA in the label text

I shall try this out! Thanks!