【发布时间】:2021-09-28 20:53:27
【问题描述】:
所选文件的路径(存储在变量source_file中)必须从browseFiles()返回并作为参数传递给objdetect()。
def browseFiles():
source_file = filedialog.askopenfilename(initialdir = "/", title = "Select a File", filetypes =[('All Files', '.*')],parent=window)
label_file_explorer.configure(text=""+source_file)
Python 3.8 (Tkinter) Project details
【问题讨论】:
-
好的。你有什么问题或疑问?
-
return source_file似乎是您问题的答案。你试过吗?
标签: python python-3.x tkinter