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 37febae commit b0ca00eCopy full SHA for b0ca00e
adafruit_display_text/label.py
@@ -236,14 +236,13 @@ def font(self):
236
237
@font.setter
238
def font(self, new_font):
239
- old_text=self._text
240
- self._text=''
241
- self._font=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