XBMC Community Forum
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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


- stanley87 - 2007-04-19 02:07

Nuka1195 Wrote:check your __init__() that you copied from Donno's example.

Code:
def __init__(self,strXMLname, strFallbackPath,strDefaultName,bforeFallback=0):

once you pass arguments to the windowXML class, can you override them in __init__().

I want to get skin settings inside the class (Which skin to use), not before the call to the class. This should be possible, I just can't get it to work.

hmmm, _init_ is called before the window is created, and oninit is called after, so maybe possible to change the arguments in the _init_, but not 100% sure, will try when i get home from work


- Nuka1195 - 2007-04-20 15:23

Donno, you look into those bugs I posted?

Also here's the link to the fallbackMediaPath patch.

https://sourceforge.net/tracker/index.php?func=detail&aid=1703053&group_id=87054&atid=581840

This really should be changed before too many scripts take advantage of WindowXML.


- Nuka1195 - 2007-04-23 00:49

donno?


-- - donno - 2007-04-24 14:31

Feel free commit the media path changes


Once you pass arguments to the windowXML class, can you override them in __init__(). << no idea what you mean by that, other Smile changing the ones that must be there won't effect anything. (by chaning i mena something like doing
def __init__ (self,xmlname,fallbackPath):
fallbackPath = "Q:\\"

That will have no effect whats so ever on the Window it won't actually change it,or at least im sure it shouldn't.

As for the bug on textures, jm suggested i look in AllocResources.

Im very busy with real life so might be a while until i can look into things again.


- Nuka1195 - 2007-04-24 15:00

Yeah, I wanted to grab settings, therefore a skin setting inside the class. If it can't be overridden, I'll just grab it before the call to the class. I thought I was doing something wrong.

I'm 99% sure I won't be able to fix it, but I can take a look at AllocResources.


- Nuka1195 - 2007-04-24 16:53

Yup using AllocResources() fixes the texture bug.


- Nuka1195 - 2007-04-24 18:19

Ok, When I get approval I'll commit the fix for the texture bug. I will also commit the fallbackMediaPath change at that time.

So scripters be prepared to move your /media/ folders inside your /skinofchoice/ folder with the /Pal/ folder


- stanley87 - 2007-04-25 01:05

Sounds good Nuka!


- Nuka1195 - 2007-04-25 04:17

Quote:fixed: WindowXML: If fallback media path was used, some controls didn't render until focused
changed: WindowXML: Moved fallback media path inside the /skins/skinname/ folder with PAL, PAL16x9...

I forgot to thank JMarshall for the fix in the log, oops, thanks JMarshall


- stanley87 - 2007-04-25 05:21

IDEA!!

You should code in a self.getcurrentskinpath(), or self.getcurrentskinname().
ETC, i know you could just find out what skin xbmc is running but this won't work for scripts that allow changing of skins and also, when the script does not have a skin for the current xbmc skin.