- 博客(1)
- 收藏
- 关注
原创 tkinter的按钮事件,通过文件对话框选择图片文件,实现标签(label)图片切换
@TOC 核心代码 import tkinter as tk from tkinter import filedialog import matplotlib.image as img #img_file=None def img_select(): global img_file #请注意必须通过global应用外部变量img_file file_path=filedialog.askopenfilename(initialdir='D:/Machine Learning/Pyth
2020-07-18 13:40:34
1420
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人