美文网首页
python文件弹窗及消息弹窗

python文件弹窗及消息弹窗

作者: Andy计算机专业 | 来源:发表于2019-12-03 17:32 被阅读0次
import tkinter as tk
import tkinter.filedialog as tk_file
import tkinter.messagebox as msg
root = tk.Tk().withdraw()
print(tk_file.askopenfilename(title='请选择vcf或csv文件',
                              filetypes=[("vcf文件", "*.vcf"), ('csv文件', '*.csv')]))
msg.showinfo(message="正常消息")

相关文章

网友评论

      本文标题:python文件弹窗及消息弹窗

      本文链接:https://www.haomeiwen.com/subject/gyqhgctx.html