def expanded_draw_on_surf(self, surf):
        """Draw expanded signature mode elements on given surf."""
        ###
        blit_on_surf = surf.blit

        ### draw background and text elements, then
        ### widgets, buttons and sockets

        for obj in chain(
            self.background_and_text_elements,
            (self.sigmode_toggle_button,),
            self.visible_widgets,
            self.live_keyword_entries,
            self.unpacking_icons,
            self.placeholder_add_buttons,
            self.visible_remove_widget_buttons,
            self.subparam_up_buttons,
            self.subparam_down_buttons,
            self.input_sockets,
            self.output_sockets,
            self.placeholder_sockets,
        ):

            blit_on_surf(obj.image, obj.rect)
Draw expanded signature mode elements on given surf.
nodezator/graphman/callablenode/export.py