Skip to content

Commit 059c805

Browse files
authored
Merge pull request #119 from makermelissa/main
Fix OutlinedLabel import, but remain backwards compatible
2 parents 25fc43d + ddaaa10 commit 059c805

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_portalbase/__init__.py

100644100755
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
from adafruit_bitmap_font import bitmap_font
2929
from adafruit_display_text import wrap_text_to_lines
3030
from adafruit_display_text.bitmap_label import Label
31-
from adafruit_display_text.outlined_label import OutlinedLabel
31+
32+
if not hasattr(Label, "outline_size"):
33+
from adafruit_display_text.outlined_label import OutlinedLabel
34+
else:
35+
OutlinedLabel = Label
3236

3337
__version__ = "0.0.0+auto.0"
3438
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PortalBase.git"

0 commit comments

Comments
 (0)