Skip to content

Commit f8c69db

Browse files
author
Margaret Matocha
committed
ran black for formatting
1 parent dcd4662 commit f8c69db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_display_text/label.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def __init__(
9999

100100
self._background_color = background_color
101101

102-
#bounds = self._font.get_bounding_box()
102+
# bounds = self._font.get_bounding_box()
103103
self.height = self._font.get_bounding_box()[1]
104104
self._line_spacing = line_spacing
105105
self._boundingbox = None
@@ -149,11 +149,11 @@ def _create_background_box(self, lines, y_offset):
149149
box_width = (
150150
self._boundingbox[2] + self._padding_left + self._padding_right
151151
) # left + right padding
152-
x_box_offset = -self._padding_left
152+
x_box_offset = -self._padding_left
153153
box_height = (
154154
(ascender_max + descender_max)
155155
+ int((lines - 1) * self.height * self._line_spacing)
156-
+ self._padding_top
156+
+ self._padding_top
157157
+ self._padding_bottom
158158
)
159159
y_box_offset = -ascender_max + y_offset - self._padding_top
@@ -368,7 +368,7 @@ def font(self, new_font):
368368
current_anchored_position = self.anchored_position
369369
self._text = ""
370370
self._font = new_font
371-
#bounds = self._font.get_bounding_box()
371+
# bounds = self._font.get_bounding_box()
372372
self.height = self._font.get_bounding_box()[1]
373373
self._update_text(str(old_text))
374374
self.anchored_position = current_anchored_position

0 commit comments

Comments
 (0)