-2
我不知道为什么我运行脚本时运行脚本时调用的函数运行时没有按下按钮。模块的功能自动运行?
import tkinter
from tkinter import filedialog
root = tkinter.Tk()
root.title("fool")
root.geometry("300x300")
br = tkinter.Button(root, text ="Carica File", command = filedialog.askopenfile(mode="r"))
br.pack()
什么是你的问题?这是相当不清楚的。 – MarkyPython