在以下Python代码中未选择文件。该消息框应显示所选的文件名,但不显示任何文件名。
def ask_master_file_loc():
path = filedialog.askopenfilename()
global contracts_v1
contracts_v1 = glob.glob('file*.csv')
messagebox.showinfo("Folder Selected", contracts_v1)
upload.configure(bg = "#C0C0C0", state=DISABLED, relief = SUNKEN)
create_folder.configure(bg = "#53e13d", state=NORMAL)