2006-03-02, 23:47
i'm developing a python script which has a gui and i have a strange problem with the size of the controls.
here is an example.
1) i create a white square picture (test.png) whose size is exactly 100x100.
2) i display it using the following code
3) i run my script and i take a screenshot.
analizing the screenshot, the size of the white square has become 92x97.
i don't understand why and how to solve it.
any idea?
thx,
girotour
here is an example.
1) i create a white square picture (test.png) whose size is exactly 100x100.
2) i display it using the following code
Quote:self.setcoordinateresolution(pal_16x9)
self.imgtest = xbmcgui.controlimage(50, 50, 100, 100, "test.png")
self.addcontrol(self.imgtest)
3) i run my script and i take a screenshot.
analizing the screenshot, the size of the white square has become 92x97.
i don't understand why and how to solve it.
any idea?
thx,
girotour