2008-11-24, 12:06
Hi!
I want to call a script with different parameters, dependent on the control.
You can imagine it as a script for a popup which should be called with the text that should be displayed...
I tried to do the following:
upon clicking the control, the print statements are executed (even eg '1110' and also 'done onClick'), but the scripts have not been executed...
no errors are logged
any idea what's wrong?
I want to call a script with different parameters, dependent on the control.
You can imagine it as a script for a popup which should be called with the text that should be displayed...
I tried to do the following:
Code:
def onClick(self, controlID):
try:
print 'text1: ' + self.text1
print 'text2: ' + self.text2
print 'text3: ' + self.text3
if controlID == 1110:
xbmc.executebuiltin('RunScript(q:\skin\myskin\scripts\skin.py, self.text1)')
elif controlID == 1120:
xbmc.executebuiltin('RunScript(q:\skin\myskin\scripts\skin.py, self.text2)')
elif controlID == 1130:
xbmc.executebuiltin('RunScript(q:\skin\myskin\scripts\skin.py, self.text3)')
print 'done onClick'
except StandardError, e:
print 'Fehler onClick: ' + e
upon clicking the control, the print statements are executed (even eg '1110' and also 'done onClick'), but the scripts have not been executed...
no errors are logged
any idea what's wrong?