Kodi Community Forum

Full Version: Unique instance of the same XBMCGUI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear all,
I just use a python script to create a Video addon in which I have full control over the user input event. Therefore I create a class inheriting the class xbmcgui.WindowXML.

Then in the main body of the script, I just call the DoModal() to display my main window and to perform task of my addon.

The problem is that anytime I activate my addon via RPC call, Kodi will create a new window for my Addon.

How can check whether there is already opened window and I can reuse that one instead of creating a new one.

Many thanks