centered the pix in hon screen

git-svn-id: http://www.neo1973-germany.de/svn@247 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
fgau 2009-02-17 18:47:13 +00:00
parent c709447f3e
commit 09599aab2a
2 changed files with 2 additions and 3 deletions

View file

@ -40,10 +40,10 @@ class HonScreen(EdjeGroup):
x = x * dy / y x = x * dy / y
y = dy y = dy
print 'x, y, dx, dy: ', x, y, dx, 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.part_swallow('icon', self.image)
self.obj = self.part_object_get('clipper') 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() self.obj.show()
print 'obj: ', self.obj print 'obj: ', self.obj

View file

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