def create_pathpreview_subform(self):
        """Create form for path preview arguments."""
        ### define an starting offset
        offset = 10, 30

        ### create list to hold widget
        pathpreview_subform = List2D()

        ### instantiate value argument widgets

        ## define argument name
        arg_name = "value"

        ## instantiate and store text object

        text_obj = get_text_obj(reference_rect=self.rect, offset=offset, text=arg_name)

        pathpreview_subform.append(text_obj)

        ## define needed arguments, instantiate and store
        ## widget for the path button value

        # define widget name
        widget_name = arg_name

        # define position data

        offset = 65, offset[1] + 5
        coordinates_name = "topleft"
        coordinates_value = self.rect.move(offset).topleft

        # instantiate and store

        value_pathpreview = PathPreview(
            name=widget_name,
            loop_holder=self,
            draw_on_window_resize=self.draw,
            coordinates_name=coordinates_name,
            coordinates_value=coordinates_value,
        )

        pathpreview_subform.append(value_pathpreview)

        ### finally store the subform list in the
        ### subform map
        self.subform_map["path_preview"] = pathpreview_subform
Create form for path preview arguments.
nodezator/editing/widgetpicker/subforms.py