centered the pix in the pix viewer

git-svn-id: http://www.neo1973-germany.de/svn@246 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
fgau 2009-02-17 18:24:41 +00:00
parent e9d4da93e3
commit c709447f3e
2 changed files with 3 additions and 4 deletions

View file

@ -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)

View file

@ -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