setLabel and fadelabel problem!
#1
Hi

I was in the middle of moding an addon and wanted to display DialogKaiToast.xml wheni ran in to a minor problem!

I was not able to use setLabel on fadelabel (id - 401 and 402) in confluence, but if i change the fadelabel's to normal label's it works fine!

is this on purpose or am i doing something wrong?

cheers
c_bb
Reply
#2
fadelabel controls don't support the setLabel() method.
use addLabel() instead

http://mirrors.xbmc.org/docs/python-docs...lFadeLabel
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Thnx ronie

after some time i came up with a "solution"!

if testForFunc():
self.getControl( 401 ).addLabel( "Press a key" )
self.getControl( 402 ).addLabel( "Press the key you want to assign, now!" )
else:
self.getControl( 401 ).setLabel( "Press a key" )
self.getControl( 402 ).setLabel( "Press the key you want to assign, now!" )

def testForFunc():
try:
self.getControl( 401 ).addLabel( "" )
return True
except:
return False

it works! But there problerbly is a better way to do this!

cheers
c_bb
Reply

Logout Mark Read Team Forum Stats Members Help
setLabel and fadelabel problem!0