WindowXML GUI Toolkit (replaces GUIBuilder for XBMC python scripts for GUI coding)
stanley87
Skilled Python Coder Joined: Sep 2006 Reputation: 2 Location: Chch, New Zealand |
2007-04-11 00:09
Post: #41
thats just the type of list i used in the xml, so you still no what list item you are on when leaving the list - easily changable in the xml file. It was a quick example i did for the author of that script so didn't spend ages making it nice. But yeh, its using a non built in list (well 3 of them). I also in my XinBox script are using a combination of a builtin list + non-builting list, my main email list is a builtin list but my email dialog attachments list is a non-built-in list , and there seems to be no problem going between them at this stage.
|
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2007-04-11 00:26
Post: #42
yup, i figured that out. I'm no skinner and never saw that before, thought it was a bug.
The only real issues i'm having now are: 1. Dialogs just dissapear at random times 2. fallback media path, it should be media inside the skins/skinname folder, i did a patch that does this, but as currently it doesn't work with dialogs. 3. onclick() event gets fired by other than select |
| find quote |
asg
Member Posts: 80 Joined: Nov 2005 Reputation: 0 |
2007-04-11 00:31
Post: #43
mixing windowxml style list and old traditional listitems works fine here. thanks for this "simple" solution stanley
![]() a function to reformat the list (label,label2..) without just clear and rebuild the list would be great. alter single list items would also be nice. is the WindowClose animation implemented yet? great work. thanks asciii |
| find quote |
asg
Member Posts: 80 Joined: Nov 2005 Reputation: 0 |
2007-04-11 00:35
Post: #44
Nuka1195 Wrote:3. onclick() event gets fired by other than select could you post an example? works fine here with controlIDs. |
| find quote |
stanley87
Skilled Python Coder Joined: Sep 2006 Reputation: 2 Location: Chch, New Zealand |
2007-04-11 03:05
Post: #45
Nuka1195 Wrote:yup, i figured that out. I'm no skinner and never saw that before, thought it was a bug. 1) I have a problem where every now and again my dialog flashes, it doesnt stuff the script, Navigation works etc, but it doesn't stop flashing until another gui function is activated. 2) I sort of told donno to make it so one media folder for all. Could be changed if needed. 3) I noticed this too but bypassed using onacation and getfocus etc. |
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2007-04-11 03:13
Post: #46
#1 is fixed in SVN, by JMarshall
|
| find quote |
stanley87
Skilled Python Coder Joined: Sep 2006 Reputation: 2 Location: Chch, New Zealand |
YAH! this was worrying me.
now if donno just got on2 that problem with winxmldialog fallbackpath not working, i will be one happy camper!! And maybe added the removelistitem feature, this would be perfection! Iv learnt to live with the no set thumbnail images. I just reset the list and add all the items with the new icons. |
| find quote |
stanley87
Skilled Python Coder Joined: Sep 2006 Reputation: 2 Location: Chch, New Zealand |
2007-04-11 06:41
Post: #48
asciii Wrote:mixing windowxml style list and old traditional listitems works fine here. thanks for this "simple" solution stanley Yeh, donno said he might be able to implement a listremoveitem command which would be very handy for my script as, when emails are deleted, they need to be removed from the email list, and at present, i have to reset the list and then rebuild it. |
| find quote |
donno
Team-XBMC Python Developer Joined: Jan 2005 Reputation: 0 Location: Australia |
2007-04-11 08:54
Post: #49
Sorry for forgetting, thou I swear I checked this 2 days ago and last post was stan, usually i don't bother replying here as I always catch stan on irc.
Time to answer some questions 1) OnClick getting fired by stuff like the selecItem This is now fixed, the problem was i removed code that limited the event to be raised only by controllist (if it was aselect item), or if the contrl was a button or checkmark). However i didn't expleciity set it for the button and checkmark this way stuff like the togglebutton (even thou it doesn't have a python contro equivlent, you can still detect if it got a onClick. Fixed in SVN 2) Media fallback path does not work in winxml Dialog windows BY Stanley I have got no idea why that not working, we even look at the code and its fine it should execute the same render function as Dialog Fixed in SVN 3) Can not set thumbnails on list items. Well you can set thumbnails on list items, how ever due to limitation bug in the coding of the getListItem, i was unable to get it to pass the real list item so instead, the a 'new list item is created' with the info from the real one, so therefore doing set on it has no effect on the real item that is in the list. This was done to fix another problem and this was the solution so sorry about that. getListItem can be used for gets fine (just not sets). Still Broken I won't fix this one as I wrote it the way it currently is. Nuka1195: self.getControl(4).addItem("") SHOULDN"T work, as control id 4 is reserved for the sort asc button. Ids 3 and 4 are reserved for the sort and sort asc toggle button, and shouldn't be used at the moment. its not implemented but I left it in just incase. That being said to clarify you SHOULD NOT use ID 2,12, 50-59 for anything else other then View Button, Label containing number Objects in list, and the lists for multi view types. Also Nuka. stanley and I decided against fallback\skins\skinname\media in favor of fallback\skins\media (this is how the WindowXML works currently), no idea why the dialog version isn't. Added: removeItem to WindowXML, used to remove an item in the Window Lists. Changed: WindowXMLDialog is now based on WindowXML (more so), it now has the 'WindowLists' and the ablity to use lists 50-59 as ONE (and supports the view button) so you can have multi view types. on a Dialog 'well window with a transparent background'Might be a good idea to update the pydocs on XBMCScripts. For now XBMCGUI Python Doc at time of writting it was based on revision 8466 of XBMC. ** 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. ![]()
(This post was last modified: 2007-04-11 13:48 by donno.)
|
| find quote |
Nuka1195
Skilled Python Coder Posts: 3,917 Joined: Dec 2004 Reputation: 17 |
2007-04-11 16:08
Post: #50
Quote:self.getControl(4).addItem("") SHOULDN"T workThat's fine, but if i assign control(4) to another variable it works, so your saying self.getControl(44).addItem("") should work? Quote:stanley and I decided against fallback\skins\skinname\media in favor of fallback\skins\mediaThis needs to be reconsidered, I have a patch that works (except for dialogs as it currently doesn't work either) It would be benificial to me to have the media folder inside the skinname folder. I'm sure if i tell you why, you'll argue
|
| find quote |



![[Image: badge.gif]](http://www.ohloh.net/projects/149/badge.gif)
Search
Help