From 3d77ab264b3ba548248db0ba65f262f214be6d87 Mon Sep 17 00:00:00 2001 From: Kjell Wooding Date: Sat, 4 Jun 2016 14:55:11 -0700 Subject: [PATCH] first try at fixing the aspect ratio --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 99585fa..ab6737b 100644 --- a/main.py +++ b/main.py @@ -51,6 +51,9 @@ class HexMapCell(label.Label): def __init__(self, row=0, col=0, **kwargs): self.region_in_map = MapCoords(row, col) super(HexMapCell, self).__init__(**kwargs) + self.size_hint = (1,None) + self.height = self.width / math.sqrt(3) + class BU(HexMapCell): pass