def create_bookmark_objects(self):
        """Instantiate and store objects for bookmarks."""
        width = BKM_PANEL_WIDTH - 2

        ### create a special list to hold the objects

        self.bookmark_objs = List2D(
            PathObject(
                path=None,
                width=width,
                padding=PATH_OBJ_PADDING,
            )
            for _ in range(PATH_OBJ_QUANTITY)
        )

        ### position objs relative to each other

        self.bookmark_objs.rect.snap_rects_ip(
            retrieve_pos_from="bottomleft",
            assign_pos_to="topleft",
        )

        ### assign height of self.path_objs plus 2
        ### as the panel's height

        self.rect.height = self.bookmark_objs.rect.height + 2
Instantiate and store objects for bookmarks.
nodezator/fileman/bookmarkpanel/main.py