def __init__(self, file_manager):
        """Assign variables, perform setups.

        Parameters
        ==========
        file_manager (fileman.main.FileManager instance)
        """
        self.fm = file_manager

        ### assign behaviour to an attribute of the
        ### PathObject class
        PathObject.load_directory = self.change_current_dir

        ### create a rect attribute

        self.rect = Rect(
            (0, 0),
            ## size
            (DIR_PANEL_WIDTH, 0),
        )

        ### create a current directory attribute, using
        ### the pathlib.Path to the home directory
        self.current_dir = Path.home()

        ### build objects composing this instance
        self.build_widget_structure()

        ### store an initial value for the index of the
        ### last selected path in the directory panel
        self._last_selected_index = None
Assign variables, perform setups.

        Parameters
        ==========
        file_manager (fileman.main.FileManager instance)
        
nodezator/fileman/dirpanel/main.py