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:
parent
c709447f3e
commit
09599aab2a
2 changed files with 2 additions and 3 deletions
|
@ -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…
Reference in a new issue