diff --git a/epydial/hon_screen.py b/epydial/hon_screen.py index 8cb74c1..cee7d1b 100644 --- a/epydial/hon_screen.py +++ b/epydial/hon_screen.py @@ -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 diff --git a/epydial/pix_screen.py b/epydial/pix_screen.py index e0331f7..81d7a51 100755 --- a/epydial/pix_screen.py +++ b/epydial/pix_screen.py @@ -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