예제 #1
0
파일: module.py 프로젝트: fhorinek/pi8bit
 def update_body(self, state=None):
     self.zoom = self.parent.zoom
     self.font = self.parent.font
     self.label_font = self.parent.label_font
     
     if self.old_zoom is not self.zoom:
         Cell.update_body(self, state=state)
         self.old_zoom = self.zoom
         for k in self.objects:
             self.objects[k].request_update_body()
         
     for k in self.objects:
         self.objects[k].draw()
         
     #update_request is invalid since all cell were allready redrawn (and it is triggered by Cell.update_body())
     self.update_request = False
예제 #2
0
파일: module.py 프로젝트: fhorinek/pi8bit
 def update_body(self, state=None):
     Cell.update_body(self, state=self.input("A"))
     self.parent.draw_text(self.surface, self.name, self.rect_rel)