Skip to content

Commit 6c4c3a9

Browse files
committed
Add warnings
1 parent 273cd52 commit 6c4c3a9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

adafruit_portalbase/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,10 @@ def root_group(self):
557557
@property
558558
def splash(self):
559559
"""The root display group for this device (for backwards compatibility)."""
560+
print(
561+
"WARNING: splash is deprecated, use root_group instead. "
562+
"This will be removed in a future release."
563+
)
560564
return self.graphics.root_group
561565

562566
@property

adafruit_portalbase/graphics.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,8 @@ def root_group(self):
168168
@property
169169
def splash(self):
170170
"""The display's root group (for backwards compatibility)."""
171+
print(
172+
"WARNING: splash is deprecated, use root_group instead. "
173+
"This will be removed in a future release."
174+
)
171175
return self.display._root_group

0 commit comments

Comments
 (0)