Skip to content

Commit 12b47af

Browse files
authored
fix return
removing unneeded _anchored_position variable.
1 parent 2fdd09b commit 12b47af

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

adafruit_display_text/label.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def __init__(self, font, *, text=None, max_glyphs=None, color=0xffffff,
6565
self.width = max_glyphs
6666
self.font = font
6767
self._text = None
68-
self._anchor_point = (0, 0)
6968

7069
self.palette = displayio.Palette(2)
7170
self.palette.make_transparent(0)
@@ -189,10 +188,8 @@ def anchor_point(self, new_anchor_point):
189188
def anchored_position(self):
190189
"""Position relative to the anchor_point. Tuple containing x,y
191190
pixel coordinates."""
192-
_anchored_position = (
193-
self.x-self._boundingbox[2]*self._anchor_point[0],
194-
self.y-self._boundingbox[3]*self._anchor_point[1])
195-
return _anchored_position
191+
return (self.x-self._boundingbox[2]*self._anchor_point[0],
192+
self.y-self._boundingbox[3]*self._anchor_point[1])
196193

197194
@anchored_position.setter
198195
def anchored_position(self, new_position):

0 commit comments

Comments
 (0)