Skip to content

Commit 7ff41a3

Browse files
committed
Fix a bug. dims should be converted from tuple to list.
1 parent ae43b15 commit 7ff41a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_button/button_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def label(self, newtext):
100100
dims[2] >= self.width or dims[3] >= self.height
101101
):
102102
self._label.text = "{}.".format(self._label.text[:-2])
103-
dims = self._label.bounding_box
103+
dims = list(self._label.bounding_box)
104104
dims[2] *= self._label.scale
105105
dims[3] *= self._label.scale
106106
if len(self._label.text) <= 1:

0 commit comments

Comments
 (0)