2012-07-17, 14:50
Code:
import xbmc, xbmcgui
# name and create our window
class BlahMainWindow(xbmcgui.Window):
# and define it as self
def __init__(self):
# add picture control to our window (self) with a hardcoded path name to picture
self.addControl(xbmcgui.ControlImage(0,0,720,480, 'background.jpg'))
# store our window as a short variable for easy of use
W = BlahMainWindow()
# run our window we created with our background jpeg image
W.doModal()
# after the window is closed, Destroy it.
del W
I tried to run this code from xbmc wiki http://wiki.xbmc.org/index.php?title=HOW...on_Scripts . It shows dialog Loading directory forever. Is there any way how to not show it?