def _browse(self): """Opens a directory browser.""" directory = filedialog.askdirectory(initialdir=self._directory) self._variable.set(directory)