turbosnake/_components.py
def mount(self, parent):
        """Called when this component is being mounted to a tree.

        :param parent: parent of this component
        """
        assert not self.is_mounted(), 'Attempt to mount a mounted component'

        self.parent: Component = parent
        self.__tree: Tree = parent.tree
        self.__state = {}
        self.__update_enqueued = False
        self.prev_props = self.props

        self.enqueue_update()
Called when this component is being mounted to a tree.

        :param parent: parent of this component
        
Called when this component is being mounted to a tree.
Called when this component is being mounted to a tree .
def mount(self, parent):
        assert not self.is_mounted(), 'Attempt to mount a mounted component'
        self.parent: Component = parent
        self.__tree: Tree = parent.tree
        self.__state = {}
        self.__update_enqueued = False
        self.prev_props = self.props
        self.enqueue_update()
def mount ( self , parent ) : assert not self . is_mounted ( ) , 'Attempt to mount a mounted component' self . parent : Component = parent self . __tree : Tree = parent . tree self . __state = { } self . __update_enqueued = False self . prev_props = self . props self . enqueue_update ( )
Called when this component is being mounted to a tree.
Called when this component is being mounted to a tree .
"""Called when this component is being mounted to a tree.

        :param parent: parent of this component
        """
self
parent
parent of this component
parent of this component