From c709447f3ea888aa5b3f6e43ab2533ed24645486 Mon Sep 17 00:00:00 2001 From: fgau Date: Tue, 17 Feb 2009 18:24:41 +0000 Subject: [PATCH] centered the pix in the pix viewer git-svn-id: http://www.neo1973-germany.de/svn@246 46df4e5c-bc4e-4628-a0fc-830ba316316d --- epydial/epydial.py | 2 -- epydial/pix_screen.py | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/epydial/epydial.py b/epydial/epydial.py index 49a1ac0..cc2a772 100755 --- a/epydial/epydial.py +++ b/epydial/epydial.py @@ -355,7 +355,6 @@ class PyneoController(object): def on_gps_position_status(class_, status_map): status = dedbusmap(status_map) print "GPS Status: " + str(status) - if status.has_key('fix'): class_.notify_callbacks("gps_position_change", status) @@ -363,7 +362,6 @@ class PyneoController(object): def on_pwr_status(class_, status_map): status = dedbusmap(status_map) print "POWER Status: " + str(status) -# if status.has_key('battvolt'): class_.notify_callbacks("capacity_change", status) class_.notify_callbacks("pwr_status_change", status) diff --git a/epydial/pix_screen.py b/epydial/pix_screen.py index c51c79c..e0331f7 100755 --- a/epydial/pix_screen.py +++ b/epydial/pix_screen.py @@ -31,10 +31,11 @@ class PixScreen(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.size = x, y + self.obj.geometry = 60+(361-x)/2, 140+(361-y)/2, x, y self.obj.show() print 'obj: ', self.obj