Add warnings
This commit is contained in:
parent
273cd52821
commit
6c4c3a9f6d
2 changed files with 8 additions and 0 deletions
|
|
@ -557,6 +557,10 @@ class PortalBase:
|
|||
@property
|
||||
def splash(self):
|
||||
"""The root display group for this device (for backwards compatibility)."""
|
||||
print(
|
||||
"WARNING: splash is deprecated, use root_group instead. "
|
||||
"This will be removed in a future release."
|
||||
)
|
||||
return self.graphics.root_group
|
||||
|
||||
@property
|
||||
|
|
|
|||
|
|
@ -168,4 +168,8 @@ class GraphicsBase:
|
|||
@property
|
||||
def splash(self):
|
||||
"""The display's root group (for backwards compatibility)."""
|
||||
print(
|
||||
"WARNING: splash is deprecated, use root_group instead. "
|
||||
"This will be removed in a future release."
|
||||
)
|
||||
return self.display._root_group
|
||||
|
|
|
|||
Loading…
Reference in a new issue