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