def __init__(self, path:Union[Path,str]='data'):
        "Setup path to save images to, init the UI, and render the widgets."
        self._path = Path(path)
        self._ui = self._init_ui()
        self.render()
def __init__ ( self , path : Union [ Path , str ] = 'data' ) : self . _path = Path ( path ) self . _ui = self . _init_ui ( ) self . render ( )
Setup path to save images to, init the UI, and render the widgets.