Altro fix

This commit is contained in:
Alhaziel01
2020-09-28 19:03:33 +02:00
parent 25c0657a54
commit eb3141c5fd
2 changed files with 7 additions and 6 deletions

View File

@@ -84,8 +84,9 @@ class MainWindow(xbmcgui.WindowXMLDialog):
self.getControl(CAST).addItems(self.cast)
else:
self.getControl(CAST).setVisible(False)
if Info.getProperty('rating'):
self.getControl(RATING).setText(str(Info.getProperty('rating')))
if Info.getProperty('rating'): rating = str(Info.getProperty('rating'))
else: rating = 'N/A'
self.getControl(RATING).setText(rating)
getFocus(self)
def onClick(self, control_id):

View File

@@ -309,7 +309,7 @@
<top>25</top>
<right>25</right>
<height>50</height>
<width>220</width>
<width>240</width>
<visible allowhiddenfocus="true">Control.HasFocus(30500) | Control.HasFocus(30006) | Control.HasFocus(30007) | Control.HasFocus(30008)</visible>
<control type="image">
<width>50</width>
@@ -318,7 +318,7 @@
</control>
<control type="textbox" id="30006">
<left>60</left>
<width>30</width>
<width>40</width>
<height>50</height>
<textcolor>FFFFFFFF</textcolor>
<shadowcolor>00000000</shadowcolor>
@@ -328,7 +328,7 @@
<aligny>center</aligny>
</control>
<control type="button" id="30007">
<left>110</left>
<left>120</left>
<width>50</width>
<height>50</height>
<texturenofocus colordiffuse="AAFFFFFF">Infoplus/trailer.png</texturenofocus>
@@ -338,7 +338,7 @@
<onright>30008</onright>
</control>
<control type="button" id="30008">
<left>170</left>
<left>180</left>
<width>50</width>
<height>50</height>
<texturenofocus colordiffuse="AAFFFFFF">Infoplus/search.png</texturenofocus>