window problem
#1
wen create a window like this
Code:
import xbmcgui
class winE(xbmcgui.Window):
    def __init__(self):
        super(winE,self).__init__()
        self.btn1=xbmcgui.ControlButton(0,0,500,50,'ajouter des media')
        self.addControl(self.btn1)
    def onControl(self,c):
        if self.btn1==c:
            self.close()
w=winE()
w.doModal()
after executing the plugin the window is bloked there are the working logo and i can't click any thing befor clicking right-click then become able to click any item is there any method to resolve the problem and change the window to become able to use from the first click
Reply
#2
when you want to create an addon, you should first understand the difference between plugins and scripts.
scripts can use the xbmcgui class to create their own windows. plugins can't.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
thx, should i use the xml window from the skin with the predefined id or i can costomise one if true tell me how use or call it and i'm so grateful
Reply
#4
you should create your own window.
i would recommend to use the xbmcgui.WindowXML class for this.

also, see my answer here:
234400 (thread)
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
window problem0