first try at fixing the aspect ratio

This commit is contained in:
Kjell Wooding 2016-06-04 14:55:11 -07:00
parent 248c6ece0c
commit 3d77ab264b
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ class HexMapCell(label.Label):
def __init__(self, row=0, col=0, **kwargs): def __init__(self, row=0, col=0, **kwargs):
self.region_in_map = MapCoords(row, col) self.region_in_map = MapCoords(row, col)
super(HexMapCell, self).__init__(**kwargs) super(HexMapCell, self).__init__(**kwargs)
self.size_hint = (1,None)
self.height = self.width / math.sqrt(3)
class BU(HexMapCell): class BU(HexMapCell):
pass pass