Parent is now mandatory when creating a new BaseInstance class

This commit is contained in:
2025-11-16 17:46:44 +01:00
parent edcd3ae1a8
commit e286b60348
14 changed files with 55 additions and 38 deletions

View File

@@ -84,7 +84,7 @@ class Layout(SingleInstance):
def get_content(self):
return self._content
def __init__(self, session, app_name):
def __init__(self, session, app_name, parent=None):
"""
Initialize the Layout component.
@@ -93,7 +93,7 @@ class Layout(SingleInstance):
left_drawer (bool): Enable left drawer. Default is True.
right_drawer (bool): Enable right drawer. Default is True.
"""
super().__init__(session, Ids.Layout)
super().__init__(session, Ids.Layout, parent)
self.app_name = app_name
# Content storage