Solved Custom UI never closes when opened from a shortcut
#16
I fixed the exceptions, but the same issue appears to happen.
Reply
#17
I created simple class based on windowxml and test it. Works normally with favorites and shortcuts. You need remove code step by step (by parts) while it not start normally. After that you can understand what part of code have problem
Reply
#18
I have tried this before with the same outcome. Would you mind sharing your test code for addon.xml, default.py and the text windowxml and i will see if i still experience the same issue or if it works as expected on my system?

I used the example provided on the kodi wiki initially and had the same issue, but since we know your code is not i would like to test with it. If it is not to much trouble
Reply
#19
Hrm, it appears to be suddenly working, yet I have not changed anything since the addon.xml. Is it possible that the rebuild gets cached sometimes?
Reply
#20
(2016-12-30, 19:17)Protocol-X Wrote: I have tried this before with the same outcome. Would you mind sharing your test code for addon.xml, default.py and the text windowxml and i will see if i still experience the same issue or if it works as expected on my system?

I used the example provided on the kodi wiki initially and had the same issue, but since we know your code is not i would like to test with it. If it is not to much trouble

default.py:
Code:
import xbmcgui, xbmcaddon

__addon__ = xbmcaddon.Addon(id='script.testxml')
__path__  = __addon__.getAddonInfo('path')

class TestWnd (xbmcgui.WindowXML):
    def __init__(self, *args, **kwargs):
        pass      
            
    def onClick(self, controlID):
        self.close()      

if __name__ == '__main__':
    wnd = TestWnd('test.xml', __path__, 'Default')
    wnd.doModal()
    del wnd

addon.xml:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon
    id="script.testxml"
    name="TestXML"
    version="1.0.0"
    provider-name="Taifxx"
    >
  <requires>
    <import
        addon="xbmc.python"
        version="2.1.0"
    />
  </requires>
  <extension point="xbmc.python.script" library="default.py"/>
  <extension point="xbmc.addon.metadata">
    <summary lang="en">Test</summary>    
    <description lang="en">Test</description>
    <disclaimer lang="en"></disclaimer>
    <platform>all</platform>
    <license>GNU GENERAL PUBLIC LICENSE V3</license>
  </extension>
</addon>
Reply
#21
Yes, maybe )))

p.s. you can have 2 extension in addon.xml if you need:
<extension point="xbmc.python.script" library="default.py"/>
<extension point="xbmc.python.pluginsource" library="default.py">
Reply
#22
(2016-12-30, 20:01)Taifxx Wrote: Yes, maybe )))

p.s. you can have 2 extension in addon.xml if you need:
<extension point="xbmc.python.script" library="default.py"/>
<extension point="xbmc.python.pluginsource" library="default.py">

Thanks for the info and time. This is my first dive into a custom ui so it has been quite the trial and error experience.
Reply

Logout Mark Read Team Forum Stats Members Help
Custom UI never closes when opened from a shortcut0