def pymod_directory_browse_state(self):
current_path = self.pymod_dir_window_main_entry.get()
# Lets users choose a new path.
new_path = askdirectory(title = "Select a folder in which to build the 'PyMod Directory'",
initialdir=current_path, mustexist = True, parent = self.pymod_dir_window)
# Updates the text in the Entry with the new path name.
if new_path:
self.pymod_dir_window_main_entry.delete(0, END)
self.pymod_dir_window_main_entry.insert(0, new_path)
评论列表
文章目录