Hardened instance creation

This commit is contained in:
2026-03-23 22:10:11 +01:00
parent 7f099b14f6
commit 3bcf50f55f
5 changed files with 17 additions and 10 deletions
+4 -4
View File
@@ -26,10 +26,10 @@ class Boundaries(SingleInstance):
Keep the boundaries updated
"""
def __init__(self, owner, container_id: str = None, on_resize=None, _id=None):
super().__init__(owner, _id=_id)
self._owner = owner
self._container_id = container_id or owner.get_id()
def __init__(self, parent, container_id: str = None, on_resize=None, _id=None):
super().__init__(parent, _id=_id)
self._owner = parent
self._container_id = container_id or parent.get_id()
self._on_resize = on_resize
self._commands = Commands(self)
self._state = BoundariesState()