Changeset 102:a804d1e0e69e
Legend:
- Unmodified
- Added
- Removed
-
engine.py
r101 r102 €а 16 16 def redraw(self):€а 17 17 field_size = min(self.canvas.winfo_height(), self.canvas.winfo_width())€а 18 €а offset = ( self.canvas.winfo_width() - field_size, self.canvas.winfo_height() - field_size)€а€а 18 offset = ((self.canvas.winfo_width() - field_size)/2.0, (self.canvas.winfo_height() - field_size)/2.0)€а 19 19 x0=offset[0] + self.x*field_size/21.0€а 20 20 y0=offset[1] + self.y*field_size/21.0€а
Note: See TracChangeset
for help on using the changeset viewer.