def show_formatted_dialog(self, key, *args):
        """Like show_dialog_from_key(), can format message.

        Parameters
        ==========
        key (string)
            used as a key to retrieve data from the
            dialogs map with which to generate the dialog.
        args (iterable)
            contains arguments to pass to str.format.
        """
        ### note the data must be copied, since it is
        ### edited each time it is retrieved
        data = DIALOGS_MAP[key].copy()

        ### edit message
        data["message"] = data["message"].format(*args)

        ### create dialog
        return self.create_and_show_dialog(**data)
Like show_dialog_from_key(), can format message.

        Parameters
        ==========
        key (string)
            used as a key to retrieve data from the
            dialogs map with which to generate the dialog.
        args (iterable)
            contains arguments to pass to str.format.
        
nodezator/dialog.py