Posts: 5
Joined: Apr 2016
Reputation:
0
2016-04-18, 13:02
(This post was last modified: 2016-04-18, 14:14 by Xoroos.)
Hi!
Someone can avice me, which way to display grid of thumbnails (images) in program addon type?
I can add ControlImages in window in loop, one by one, row by row, then i can remove it one by one, but it's a very savage method...
Thanks!
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
2016-04-18, 15:16
(This post was last modified: 2016-04-18, 15:49 by ronie.)
the easiest way would be to use the WindowXML class.
that will allow you to create the skin in xml instead of python (which is limited in functionality).
you can use a panel control to create a grid type layout.
Posts: 5
Joined: Apr 2016
Reputation:
0
Thank you, Ronie!
i'll try your suggesion.
Posts: 5
Joined: Apr 2016
Reputation:
0
After doModal(), window intercept control and focus, I try to return focus to previous window, but this is not working.
What a solution to display window without getting control?
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
that's not really possible. windowxml dialogs are modal, they process all user input.