re-ran black for formatting
This commit is contained in:
parent
37febaef3c
commit
b0ca00ef2f
1 changed files with 4 additions and 5 deletions
|
|
@ -236,14 +236,13 @@ class Label(displayio.Group):
|
|||
|
||||
@font.setter
|
||||
def font(self, new_font):
|
||||
old_text=self._text
|
||||
self._text=''
|
||||
self._font=new_font
|
||||
old_text = self._text
|
||||
self._text = ""
|
||||
self._font = new_font
|
||||
bounds = self._font.get_bounding_box()
|
||||
self.height = bounds[1]
|
||||
self.height = bounds[1]
|
||||
self._update_text(str(old_text))
|
||||
|
||||
|
||||
@property
|
||||
def anchor_point(self):
|
||||
"""Point that anchored_position moves relative to.
|
||||
|
|
|
|||
Loading…
Reference in a new issue