Kodi Community Forum

Full Version: Problems with GUI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

I created my first add-on (which works) but I have problems with the GUI. I used

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')

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