python tkinter中如何获取输入文件夹的路径 10
储存askdirectory中选择文件夹的路径,并使下一个函数能够调用defselectPath(path_):path_=tkFileDialog.askdirecto...
储存askdirectory中选择文件夹的路径,并使下一个函数能够调用
def selectPath(path_):
path_ = tkFileDialog.askdirectory()
path.set(path_)
Button(root, text = 'BUTTON', command = selectPath) 展开
def selectPath(path_):
path_ = tkFileDialog.askdirectory()
path.set(path_)
Button(root, text = 'BUTTON', command = selectPath) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询