We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb79810 commit 37febaeCopy full SHA for 37febae
adafruit_display_text/label.py
@@ -235,14 +235,15 @@ def font(self):
235
return self._font
236
237
@font.setter
238
- def font(self, newFont):
239
- old_text = self._text
240
- self._text = ""
241
- self._font = newFont
+ def font(self, new_font):
+ old_text=self._text
+ self._text=''
+ self._font=new_font
242
bounds = self._font.get_bounding_box()
243
- self.height = bounds[1]
+ self.height = bounds[1]
244
self._update_text(str(old_text))
245
246
+
247
@property
248
def anchor_point(self):
249
"""Point that anchored_position moves relative to.
0 commit comments