2015-06-10, 18:52
Hey,
I am a beginner with python and kodi programming, so i need some help.
Yesterday i discovered the WindowDialog class, and did some things. now i wanted to add a ControlProgress, but it does not appear and there are also no fail messages in the log.
Here my code (only the class for WindowDialog):
Please help me
I am a beginner with python and kodi programming, so i need some help.
Yesterday i discovered the WindowDialog class, and did some things. now i wanted to add a ControlProgress, but it does not appear and there are also no fail messages in the log.
Here my code (only the class for WindowDialog):
Code:
class MainClass(xbmcgui.WindowDialog):
def __init__(self):
self.button = xbmcgui.ControlButton (1000, 600, 200, 50, 'Close', font='font14')
self.addControl(self.button)
self.progress = xbmcgui.ControlProgress(100, 250, 125, 75)
self.addControl(self.progress)
def onControl(self, control):
if control == self.button:
self.close()
mydisplay = MainClass()
mydisplay .doModal()
del mydisplay
Please help me