centered the pix in hon screen

git-svn-id: http://www.neo1973-germany.de/svn@247 46df4e5c-bc4e-4628-a0fc-830ba316316d
main
fgau 15 years ago
parent c709447f3e
commit 09599aab2a

@ -40,10 +40,10 @@ class HonScreen(EdjeGroup):
x = x * dy / y
y = dy
print 'x, y, dx, dy: ', x, y, dx, dy
self.image.fill = 0, 0, x, y
self.image.fill = (361-x)/2, (361-y)/2, x, y
self.part_swallow('icon', self.image)
self.obj = self.part_object_get('clipper')
self.obj.size = x, y
self.obj.geometry = 60+(361-x)/2, 140+(361-y)/2, x, y
self.obj.show()
print 'obj: ', self.obj

@ -34,7 +34,6 @@ class PixScreen(EdjeGroup):
self.image.fill = (361-x)/2, (361-y)/2, x, y
self.part_swallow('icon', self.image)
self.obj = self.part_object_get('clipper')
# self.obj.size = x, y
self.obj.geometry = 60+(361-x)/2, 140+(361-y)/2, x, y
self.obj.show()
print 'obj: ', self.obj

Loading…
Cancel
Save