Skip to content

Commit e05484a

Browse files
authored
Merge pull request #2333 from davidskeck/patch-1
Remove unnecessary anchoring code
2 parents 66e64e8 + 3ea6b12 commit e05484a

File tree

1 file changed

+0
-8
lines changed
  • CircuitPython_SharpDisplay_Displayio

1 file changed

+0
-8
lines changed

CircuitPython_SharpDisplay_Displayio/code.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,5 @@ def sample(population, k):
234234
with BatchDisplayUpdate(display):
235235
for i in range(2):
236236
names_font[i].text = lines[i]
237-
238-
# Due to a bug in adafruit_display_text, we need to reestablish
239-
# the position of the labels when updating them.
240-
# Once https://github.com/adafruit/Adafruit_CircuitPython_Display_Text/issues/82
241-
# has been resolved, this code will no longer be necessary (but
242-
# will not be harmful either)
243-
names_font[i].anchor_point = (0.5, 0)
244-
names_font[i].anchored_position = (200, i*84+42)
245237
time.sleep(5)
246238
names_font[0].text = names_font[1].text = ""

0 commit comments

Comments
 (0)