Parent is now mandatory when creating a new BaseInstance class
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user