Setattr question - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +--- Thread: Setattr question (/showthread.php?tid=10973) |
- Cactus - 2005-03-29 hi, if tried this: Quote:varname = 'myvar' this seems to work; when i print self.myvar it outputs myval. when i try to use it for other things like self.addcontrol(self.myvar) it outputs this error: Quote:traceback (most recent call last): any idea how to get around it? what i wanted was a use a list[] to add controls for the xbmcgui but i don't seem to get it to work. anyone else ever did this, adding controls from lists? any help/hint is really appreciated. tia, cheers cactus |