re-ran black for formatting

This commit is contained in:
Margaret Matocha 2020-05-22 08:33:02 -05:00
parent 37febaef3c
commit b0ca00ef2f

View file

@ -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.