(self)
Ask the user for the filename and try saving the file
Ask the user for the filename and try saving the file
Ask the user for the filename and try saving the file
def save_file_as(self):
        """
        Ask the user for the filename and try saving the file
        """
        filename, selected_filter = self.get_save_filename()
        if not filename:
            return
        self.filename = filename
        self.filter = selected_filter
        self.Error.unsupported_format.clear()
        self.bt_save.setText(f"Save as {self.stored_name}")
        self.update_messages()
        self._try_save()
def save_file_as ( self ) : filename , selected_filter = self . get_save_filename ( ) if not filename : return self . filename = filename self . filter = selected_filter self . Error . unsupported_format . clear ( ) self . bt_save . setText ( f"Save as {self.stored_name}" ) self . update_messages ( ) self . _try_save ( )