2015-08-02, 23:51
Hi guys, I have another question!
I'm trying to change font in my xml script using python.
I have these in the xml:
<control type="label" id="30101">
With all other information.
<description>
<posx>
<posy>
<width>
<height>
<textcolor>
<align>
<aligny>
<label>
<font>
I'm trying to make python change the font depending on some things (It should change it to some font in the Fonts.xml).
In my python script I use self.firstlabel.setLabel to set the text I want.
But no clue how to change the font.
I was playing around with xbmcgui.ControlLabel but was unable to change the font, I'm probably not using it correctly.
Any ideas?
Thank you!
I'm trying to change font in my xml script using python.
I have these in the xml:
<control type="label" id="30101">
With all other information.
<description>
<posx>
<posy>
<width>
<height>
<textcolor>
<align>
<aligny>
<label>
<font>
I'm trying to make python change the font depending on some things (It should change it to some font in the Fonts.xml).
In my python script I use self.firstlabel.setLabel to set the text I want.
But no clue how to change the font.
I was playing around with xbmcgui.ControlLabel but was unable to change the font, I'm probably not using it correctly.
Any ideas?
Thank you!