def create_literal_display_subform(self):
        """Create form for literal display arguments."""
        ### define an starting offset
        offset = 5, 30

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

        ### instantiate show_line_number argument widgets

        ## define argument name
        arg_name = "show_line_number"

        ## update offset
        offset = 5, offset[1] + 25

        ## instantiate and store text object

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

        literal_display_subform.append(text_obj)

        ### define needed arguments, instantiate and store
        ### widget for the literal_display's show_line_number
        ### argument

        ## define widget name
        widget_name = arg_name

        ## define position data

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

        ## instantiate and store

        show_line_number_checkbutton = CheckButton(
            value=False,
            name=widget_name,
            coordinates_name=coordinates_name,
            coordinates_value=coordinates_value,
        )

        literal_display_subform.append(show_line_number_checkbutton)

        def change_show_line_number():
            value_literal_display.reset_show_line_number(
                show_line_number_checkbutton.get()
            )

        show_line_number_checkbutton.command = change_show_line_number

        ### instantiate value argument widgets

        ## define argument name
        arg_name = "value"

        ## update offset
        offset = 5, offset[1] + 25

        ## instantiate and store text object

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

        literal_display_subform.append(text_obj)

        ## define needed arguments, instantiate and store
        ## widget for the string entry 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_literal_display = LiteralDisplay(
            name=widget_name,
            value=None,
            coordinates_name=coordinates_name,
            coordinates_value=coordinates_value,
        )

        literal_display_subform.append(value_literal_display)

        ### finally store the subform list in the subform map
        self.subform_map["literal_display"] = literal_display_subform
Create form for literal display arguments.
nodezator/editing/widgetpicker/subforms.py