Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
How about you post a sample script with lists working in dialogs and more than one list in windows with different info in each.
Maybe even do a sample script with every control working, then i can see what's going on here.
Posts: 2,318
Joined: Sep 2006
Reputation:
308
Hmm,
ok, refresh list is done via : self.refreshList()
get list poss is done via: self.getCurrentListPosition()
get the list item is done via: self.getListItem(self.getCurrentListPosition())
how about:
select item, size??
There needs to be more documentation, as using lists like controls stuffs the script when going between two windows, so donno's way of having the list as id 50 seems the only way to do a list that is reliable. I like having lists like this: self.list = self.getControl(67) , but this only causes troubles in the long run which sux. In Donno's example script, as soon as you make the list as I like doing it and change between two windows, XBMC_PC crashes. So, looks like doing all the self.addItem(xbmcgui.ListItem(etc etc which seems more confusing and doesn't appear to be able to do the two functions above.
Help?
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
you are correct, only lists within range 50-59 work on Windows not Dialogs.
Scripts like AMT with three lists all wth different information do not work currently.
So I'm stuck also, for now.
Posts: 2,318
Joined: Sep 2006
Reputation:
308
i did have a list using id 68 going fine, and i did the above : self.list = self.getControl(68), then i would use self.list.additem(etc etc), this worked great until i tried going between to winxml windows.
Posts: 2,318
Joined: Sep 2006
Reputation:
308
List for Donno of possible bugs in winxml:
1) Media fallback path when used on scrollbar textures does not work
PROBLEM = Can not use custom scrollbar textures (Need for Default skin)
2) Media fallback path does not work in winxml Dialog windows
PROBLEM = Can't create my dialog very well
3) Can not set thumbnails on list items.
Thats about if for now.
:-D
Posts: 2,318
Joined: Sep 2006
Reputation:
308
Nuka, find below a link to a script that Bootsy is writing, I helped him create a cool little fake 3 label list.
Its using three different lists in windowxml outside the builtin lists
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
2007-04-10, 15:46
(This post was last modified: 2007-04-10, 17:01 by Nuka1195.)
only one button fills a list and the list selection stays highlighted, but it's a start.
I still don't see what i did different, but thanks, i'll play some more.
Edit: I was accessing the control only with self.getControl(4).addItem(""), that does not work. Should it?
Posts: 2,318
Joined: Sep 2006
Reputation:
308
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.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
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