Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions adafruit_display_text/bitmap_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@ def _reset_text(
0, # zero width with text == ""
0, # zero height with text == ""
)
# Clear out any items in the self Group, in case this is an update to the bitmap_label
for _ in self:
self.pop(0)
# Clear out any items in the self.local_group Group, in case this is an
# update to the bitmap_label
for _ in self.local_group:
self.local_group.pop(0)

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