2012-04-04, 12:19
hi, trying something very simple...
but when running the script, the controllist doesnt show up... whats wrong?
Code:
import xbmc, xbmcgui
class window(xbmcgui.Window):
def __init__(self):
self.setCoordinateResolution(6)
self.list = xbmcgui.ControlList (10, 10, 300, 300)
for i in range(1,15):
self.list.addItem ("item %s" % i)
self.addControl(self.list)
self.button = xbmcgui.ControlButton(80,280,100,20,label="Close")
self.addControl (self.button)
def onControl(self,control):
if control == self.button:
self.close()
disp = window()
disp.doModal()
but when running the script, the controllist doesnt show up... whats wrong?