def change_filepath(self):
        """Pick new path and update label using it."""
        ### initial file name
        initial_filename = Path(self.chosen_filepath_label.get()).name

        ### pick new path

        paths = (
            select_paths(
                caption=NEW_IMAGEPATH_CAPTION,
                path_name=initial_filename,
                expecting_files_only=True,
            )
        )

        ### if paths were given, there can only be one,
        ### it should be used as the new filepath

        if paths:
            new_filepath = paths[0]
            self.set_new_filepath(new_filepath)

        ###
Pick new path and update label using it.
nodezator/editing/imageexport/form.py