Calling function from outside - 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: Calling function from outside (/showthread.php?tid=10377) |
- donno - 2005-03-05 cut things short his the basics of what im doing Quote:class mainmenu(xbmcgui.window): where it says #need to call the printmy in option class. i need to be able to call the printmy function in the option class. so i can pass data through. at the time the somthing function is called the option class is active and visble and running. any help would be greatly appreicated. thanks in advance - EnderW - 2005-03-05 the way you wrote it, def somthing isn't in another class. i assume it is though, and that that is what you intended. one way of doing it: Quote:class options(xbmcgui.window): if you didn't mean to put def something in another class, you can simply call it with self.printmy(). there might be wrongs in this explainatin as i am tired, but i hope it helped a bit. you posted in the wrong forum by the way... |