def set_directory(self, variable):
"""Return a selected directory name.
ARGS:
variable (tk.Variable): The tkinter variable to save selection as.
"""
selection = filedialog.askdirectory(**self.directory_options)
variable.set(selection)
评论列表
文章目录