runscript not executing my script but others very vell - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: runscript not executing my script but others very vell (/showthread.php?tid=41016) |
runscript not executing my script but others very vell - martingu1979 - 2008-11-25 Hi! I hope, this doesn't get too confusing: Two Problems. The first: I call WindowXML windows by using RunScript. Inside this window I call another window the same way. From inside this window I am not able anymore to use RunScript from the script to call other windows. Using RunScript from the xml-file works. And, not calling a script of mine but any other script (like TAC.TV) works. Calling the same (my) script already from the home window works. It just doesn't when being called from somewhere "inside". Second Problem: Imagine the following menu structure: Code: MainMenu (portal.py and Portal.xml) Usually, I can go back to the previous window by pushing either MENU or BACK on the remote control. This stops working as soon as I'm inside eg the movies category. Instead, I get a Code: exception in CApplication::FrameMove() Clicking on a subcategory works and (as you can see below) gets me back to the home window. This is my onClick code: Code: def onClick(self, controlID): Could it be that something like a stack overflow occurs when calling runscript too often? Do I explicitly have to do some close or unload stuff to prevent this misbehaviour? btw: on the bottom of every script i have the following code (of course the xml names change) Code: win = VodOverview("VodOverview.xml", os.getcwd(), "Default", 0) Maybe someone can tell me a link to a good WindowXML example.. It seems to me that all the skins and scripts which are already available do not make much use of that WindowXML stuff yet. I have found out by googling that this FrameMove exception seems to be an error which has been tried to being solved many times but has not been reproducable until now... I guess, I have been able to reproduce this. - martingu1979 - 2008-11-25 I was able to solve the second problem by using Code: self.list.reset() however, the runscript problem is still existing... - Temhil - 2008-12-20 Hi martingu1979, Try to save your .py file to UNIX format (LF). I had similar problem, especially using import and it solved it, not sure why. I am not sure it would apply to your case, but give it a try we never know. I hope it will help you. |