- Code: Select all
if self.imageFilePath:
if self.controlValueRaw in [u"off", u"0", u"paused"]:
pass # NOP; use base file name already assigned
elif self.controlValueRaw in [u"on", u"100"]:
self.imageFilePath = self.imageFilePath[:-4] + u"+on.png"
else:
self.imageFilePath = self.imageFilePath[:-4] + u"+" + self.controlValueRaw + u".png"
you can make moving sliders and dimmable lamps like:
iphone_fader_small.png
iphone_fader_small+1.png
iphone_fader_small+2.png
iphone_fader_small+3.png