Skip to content

Commit b0ca00e

Browse files
author
Margaret Matocha
committed
re-ran black for formatting
1 parent 37febae commit b0ca00e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

adafruit_display_text/label.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,13 @@ def font(self):
236236

237237
@font.setter
238238
def font(self, new_font):
239-
old_text=self._text
240-
self._text=''
241-
self._font=new_font
239+
old_text = self._text
240+
self._text = ""
241+
self._font = new_font
242242
bounds = self._font.get_bounding_box()
243-
self.height = bounds[1]
243+
self.height = bounds[1]
244244
self._update_text(str(old_text))
245245

246-
247246
@property
248247
def anchor_point(self):
249248
"""Point that anchored_position moves relative to.

0 commit comments

Comments
 (0)