2014-09-25, 16:19
Hello,
I've a script plugin that takes some times to be loaded.
I would like to have a busy spinner for example the busydialog.xml to be displayed before the load of the plugin.
I've tried with these xml
so first I open the busy spinner with the id 8018 and after I call the script.
All works well but unfortunately when I close the script and his window I'm not able to close the window 8018.
For example with:
from inside the python script
Obviously I could not open the window 8018 from inside script because it have the same delay of the script itself.
Is there a better way to have a sort of visible preloader?
The problem arises on raspberry PI because of the low resources of the system, on my desktop I do not need a preloader.
Thanks for the help
Paolo
I've a script plugin that takes some times to be loaded.
I would like to have a busy spinner for example the busydialog.xml to be displayed before the load of the plugin.
I've tried with these xml
PHP Code:
<onclick>ActivateWindow(8018)</onclick>
<onclick>RunScript("script.quasar.shop",13)</onclick>
so first I open the busy spinner with the id 8018 and after I call the script.
All works well but unfortunately when I close the script and his window I'm not able to close the window 8018.
For example with:
PHP Code:
def onInit(self):
addon_log(self._debug, 'onInit')
self.setFocus(self.getControl(9103))
xbmc.executebuiltin("Dialog.Close(8018)")
from inside the python script
Obviously I could not open the window 8018 from inside script because it have the same delay of the script itself.
Is there a better way to have a sort of visible preloader?
The problem arises on raspberry PI because of the low resources of the system, on my desktop I do not need a preloader.
Thanks for the help
Paolo