import xbmcgui, sys from os import path Root = os.getcwd()[:-1]+"\\" class IMDb_Gallery(xbmcgui.Window): def __init__(self): import guibuilder guibuilder.GUIBuilder(self, Root + '\\XMLs\\Gallery.xml', Root + '\\Images') if (not self.SUCCEEDED): self.exitScript() def exitScript(self): self.close() #def onControl(self, control): #def onAction(self, action): MyDisplay = IMDb_Gallery() if (MyDisplay.SUCCEEDED): MyDisplay.doModal() del MyDisplay