first try at fixing the aspect ratio
This commit is contained in:
parent
248c6ece0c
commit
3d77ab264b
3
main.py
3
main.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue