WindowXML GUI Toolkit (replaces GUIBuilder for XBMC python scripts for GUI coding) - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: WindowXML GUI Toolkit (replaces GUIBuilder for XBMC python scripts for GUI coding) (/showthread.php?tid=24839)
- jc85 - 2007-07-23 15:40
No, I used the <info> tag (tried <imagePath> as well just to be sure).
When I set the string directly before creating the window, the images don't show. If I exit the script, comment out the line that calls the SetString function, then run the script again, the images display using the path I set the first time.
I can display the value of the string using the <info> tag of a label control regardless of when/where I called the SetString function, so I'm pretty stuck as to where the problem is.
- Nuka1195 - 2007-07-23 16:12
how old is your XBMC build? I set it from onInit() the first time then change it after the window is open. I also did a quick test from init() and it worked.
Post the xml and the revelant python code.
- jc85 - 2007-07-23 16:12
Sorry, I made a mistake in my earlier posts. After setting the string, I have to completely restart XBMC before the multiimage control will show. Calling the SetString function (even to set the string to the same value it already had) results in the multiimages not being displayed.
I've tried the script with a few different skins & had the same problem with each. Is there something wrong with my XBMC build? I'm using T3CH 2007-07-16 rev9578.
I've been using the following files to try & isolate the problem (trying to keep them as simple as possible):
After running the script, the label text is set to the value of multiimage-test (Q:\test), but no images are displayed. If I comment out the xbmc.executebuiltin line in the script, then restart XBMC and run the script again, the label shows the value set before and the multiimage displays, showing the correct images.
The problem exists with the same XBMC build on my Xbox and using the XBMC_PC program.
- Nuka1195 - 2007-07-23 16:28
escape the backslash, not your problem since the label shows though.
Get rid of the space after the comma shoulod fix it.
- jc85 - 2007-07-23 16:42
Excellent! Thanks a lot for your help. The fallback path was escaped properly in the script I'm working on, I just missed it in the test script. The problem was the space in the built-in function call. All working fine now
- Nuka1195 - 2007-07-23 16:44
Good, what script are you working on?
- Basje - 2007-07-23 19:02
Nuka1195 Wrote:I haven't tried.
Well, I must be doing something wrong. I have to controls of type="list" and they have ID 50 and 51. I added the <visible>!Control.IsVisible(50)</visible> to the control 51, but doesn't work. When I hide 50, 51 won't show.
the code in the script is in the onInit:
and the XML looks like this: http://pastebin.com/m3e7d8adf
So I am lost. I hope you can help me out?
- Nuka1195 - 2007-07-23 22:00
then I would say id's 50-59 can only be controlled by XBMC.
Maybe Donno can enlighten us.
- jc85 - 2007-07-23 22:39
I'm working on an alternative home screen/launcher menu. I might have to make a separate skin for it depending on how complex it gets. It probably won't be of any use for most people, so I doubt I'll make it public, but you never know It's still a very early work in progress, but I'm pleased with how it's going so far - WindowXML's made development so much easier, I haven't written an XBMC script for a while & the GUI situation has really improved!
I share a house with quite a few friends. We've got our combined DVD collection ripped & stored on a network server (almost 2TB of XviD-encoded movies & TV series) and a few live TV channels being streamed over the network too. Between us we've got 6 xboxes, and XBMC is the main way we watch TV. We've been using it over 3 years now & have a pretty good feel for which features we use the most - I'm aiming to make just those features quicker to access, which is why it'll probably be useless for most users.
The menu's been inspired by a few things - mostly by the simplicity of the Wii menu and the PM3 style/colour scheme. Everything's loaded from XML at runtime, so it's easy to add, remove or reorganise channels. Navigation works over a number of pages, each page displaying 12 channels at a time, which can be accessed by browsing through the menu or entering a 3-digit channel number using the Xbox remote control (with a bit of keymap.xml tweaking). Highlighting a channel changes the menu background & causes the selected channel button to cycle through a set of images (the result of my multiimage headaches!)
"Channels" can represent many different features of XBMC - a script, a direct file/stream link, access to a network share using the video/music browser, an XBMC window (e.g. weather) or an XBE file. I'm going to add buttons for Settings & the power menu to the bar at the bottom of the screen but haven't got round to it yet.
Like I said, it's not very mature yet - the UI still needs work & there's absolutely no error checking, but here's what it looks like so far:
- Freddo - 2007-07-24 03:05
I love that idea, and thinking about it a little if end users could customise channels through a context menu (maybe a dialog lets them chose what it points too and then a thumbnail) then anyone could use the skin and everyone could have it layed out however they liked.
to be honest I'm no coder (yet) so I'm unsure how difficult this would be, but the potential for this idea is massive I think.