Skip to content

Commit ff71151

Browse files
authored
Merge pull request #98 from kmatch98/blank_text
Correct bug of modifying self rather than self.local_group when text …
2 parents 957335c + 7f9dc63 commit ff71151

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adafruit_display_text/bitmap_label.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,10 @@ def _reset_text(
228228
0, # zero width with text == ""
229229
0, # zero height with text == ""
230230
)
231-
# Clear out any items in the self Group, in case this is an update to the bitmap_label
232-
for _ in self:
233-
self.pop(0)
231+
# Clear out any items in the self.local_group Group, in case this is an
232+
# update to the bitmap_label
233+
for _ in self.local_group:
234+
self.local_group.pop(0)
234235

235236
else: # The text string is not empty, so create the Bitmap and TileGrid and
236237
# append to the self Group

0 commit comments

Comments
 (0)