From 09599aab2a0d4b1645043556fd81a0f4176a762d Mon Sep 17 00:00:00 2001 From: fgau Date: Tue, 17 Feb 2009 18:47:13 +0000 Subject: [PATCH] centered the pix in hon screen git-svn-id: http://www.neo1973-germany.de/svn@247 46df4e5c-bc4e-4628-a0fc-830ba316316d --- epydial/hon_screen.py | 4 ++-- epydial/pix_screen.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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