python 按钮绑定一个含有变量参数的函数如何实现
btStart = Button(root, text='统计', font=('华文新魏', 15),command= )
要这个按钮实现 这个变量函数调用
def file(path):
pdf = pdfplumber.open(path)
pages = len(pdf.pages)
path为另外一个函数的返回值
def test1():
path = askopenfilename(initialdir="D:/", filetypes=[('pdf文件', '.pdf')])
print(path)
show["text"] = path
return path