2014-04-06, 02:41
Hi there,
I created my first add-on (which works) but I have problems with the GUI. I used
which creates a window that exceeds the screen (the screen gets complete dark and the radiobutton is displayed somewhere in the middle). Is there any possibility to adjust the size of the created dialog?
thanks in advance
Sebastian
I created my first add-on (which works) but I have problems with the GUI. I used
Code:
class FirstTry(xbmcgui.Window):
def __init__ (self):
xbmc.log('init class')
height = 35
width = 500
left = (self.getWidth() - width)/2
top = (self.getHeight() - height*5)/2
self.button1=xbmcgui.ControlRadioButton(left, top+0*height, width, height, 'text 1')
self.addControl(self.button1)
which creates a window that exceeds the screen (the screen gets complete dark and the radiobutton is displayed somewhere in the middle). Is there any possibility to adjust the size of the created dialog?
thanks in advance
Sebastian