Skip to content

Commit 37febae

Browse files
author
Margaret Matocha
committed
updated newFont to new_font for plint
1 parent bb79810 commit 37febae

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

adafruit_display_text/label.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,15 @@ def font(self):
235235
return self._font
236236

237237
@font.setter
238-
def font(self, newFont):
239-
old_text = self._text
240-
self._text = ""
241-
self._font = newFont
238+
def font(self, 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+
246247
@property
247248
def anchor_point(self):
248249
"""Point that anchored_position moves relative to.

0 commit comments

Comments
 (0)