diff --git a/adafruit_button.py b/adafruit_button.py old mode 100644 new mode 100755 index b188b8f..33c5c6f --- a/adafruit_button.py +++ b/adafruit_button.py @@ -140,7 +140,7 @@ def __init__(self, *, x, y, width, height, name=None, style=RECT, raise RuntimeError("Button not large enough for label") self.label = Label(label_font, text=label) self.label.x = x + (width - dims[2]) // 2 - self.label.y = y + (height - dims[3]) + self.label.y = y + height // 2 self.label.color = label_color self.group.append(self.label)