• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 13
WindowXML GUI Toolkit (replaces GUIBuilder for XBMC python scripts for GUI coding)
#61
These are old

XBMC Changelog
Kaid Control Pad (has settings dialog)

XBMC Lyrics has dialogs also
Smile

If you're doing a settings, check the *-settings.xml out. Jezz_X and JMarshall helped me. It uses a grouplist of groups. Makes the settings work like XBMC's.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#62
i was meaning using winxml :-p
Reply
#63
wow, havnt updated xbmc lyrics in a while, WOW!!!!

Looks very good! love the song progress bar! and the settings menu! and the smooth scrolling lyrics
Reply
#64
oh, i think the album art overlay should be hidden if its not overlaying the viz :-D
Reply
#65
i guess i don't understand, XBMC Changelog uses WindowXML?

About the overlay, avisible condition would work.

<visible>Window.IsVisible(2006)</visible> works, but then doesn't slide in until the viz is up.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#66
that would work, and maybe somehow have a bit of delay with the music overlay comes up as the album art overlays and looks abit messy..

Hey, im a skilled python coder now, YAH!
Reply
#67
Update: That getControl bug is now fixed (thanks Donno) in latest xbmc SVN. So it can now be run as many times as you like.
Reply
#68
Checkmarks, doesn't use fallback path for textures

Buttons, textures do not show until the first time it is focused, if it's the default control you have to focus another control then when you move back the texture shows up.

Image controls seem to work properly.

This is with current SVN.

I also have a patch that moves the media folder inside the skins/skinname/ folder where it belongs Smile Though it exibits the same behavior as above.

I haven't checked other controls that gain focus.

Edit: Should the arguments passed to WindowXML be allowed to be overridden in __init__()? I can't seem to get it to work. Your keywords in your example don't match either. Could you post an example?
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#69
Big Grin 
Hmm, im not sure what example/code snippet you are talking about.

Also, i made a patch for the self.addItem that has now been commited to SVN - thanks Donno.

It allows for list items to be added to the TOP of the list.
- I needed this for my XinBox script.

Sometime next week i will finish it so it will allow inserting list items at a given position in the list - this is only usable with the self.addItem().

Example:
self.addItem(Listitem, 0) - this will add to the top of the list
self.addItem(Listitem, -1) - this will add to the bottom of the list
self.addItem(Listitem) - defaults to original bottom of the list

to come:
self.addItem(Listitem, 2) - will add to second poss from top of list
self.addItem(Listitem, -2) - will add to the second poss from the bottom of list

But at present, those last two will just default to orignal, adding to end of list
Reply
#70
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.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#71
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
Reply
#72
Donno, you look into those bugs I posted?

Also here's the link to the fallbackMediaPath patch.

https://sourceforge.net/tracker/index.ph...tid=581840

This really should be changed before too many scripts take advantage of WindowXML.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#73
donno?
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#74
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.
** Team XBMC Tester** XBMC 4 ever

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#75
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.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 13

Logout Mark Read Team Forum Stats Members Help
WindowXML GUI Toolkit (replaces GUIBuilder for XBMC python scripts for GUI coding)0