UI Element positioning with Python and WindowXML?
#1
Hi,

I want to position a specific UI element, let's say an image on the right top corner of the screen. For the example, it's a 100px wide and I want it to be shown in whole up to the right-top edge.

I tried the most straightforward approach of ...control.setPosition(self.getWidth()-OBJECT_WIDTH, 0). The problem is with the aspect ratios, resolutions and other things I understand very little on.
Can someone throw me in the right direction??

Thanks,
--mr. kav
Reply
#2
If you're doing it from XML then it's easy - just use 200r for 200 from the right. You can also specify how the aspectratio is controlled.

Cheers,
Jonathan
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
#3
works like a charm Smile thanks.
I used 200r and 200t as point of reference in posx/y.

Where can I read more about this functionality? it will save a lot of questions Smile
Reply
#4
All the skinning docs is in the wiki. It's nowhere near complete I'm afraid, but should cover the basics.
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

Logout Mark Read Team Forum Stats Members Help
UI Element positioning with Python and WindowXML?0