Kodi Community Forum

Full Version: simple window with list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to implement a simple window with list (like ign addon, or youtube, or wtvr), that shows after some processing.

For some reason, the tutorial 1 gives me an error (http://wiki.xbmc.org/index.php?title=HOW...on_Scripts)
where W = BlahMainWindow() needs some arg...

Anyway, I'm kind of lost and dont know where to look, any help appreciated Smile
You'll need to provide some sample code, or full traceback.
If all you really want to do is show a list of files (and folders), you don't need to create a window at all. You just need to create list items and add them to XBMC. I'm actually working on a tutorial for this, since the existing tutorials aren't very helpful. You can take a look at the work-in-progress here: http://wiki.xbmc.org/index.php?title=User:Pline
IIRC, somebody has already posted here that in Gotham due to some bug (?) you need to provide a window ID (or -1) explicitly when instantiating a xbmcgui.Window class.