ImageViewer:使用Tkinter在Python中创建的图像应用查看器

时间:2021-04-17 07:49:43
【文件属性】:
文件名称:ImageViewer:使用Tkinter在Python中创建的图像应用查看器
文件大小:298KB
文件格式:ZIP
更新时间:2021-04-17 07:49:43
Python 图像浏览器 使用Tkinter用Python编写的简单图像应用查看器 在下面的GIF中,我们演示了正在执行的应用程序 以下代码显示使用模块PIL打开图像将要在应用程序中使用的所有图像都存储在列表img_list 。 之后,我们使用功能Label()将图像放入GUI中。 img_list = [ ImageTk . PhotoImage ( Image . open ( 'testphoto.jpg' )), ImageTk . PhotoImage ( Image . open ( 'testphoto2.jpg' )), ImageTk . PhotoImage ( Image . open ( 'testphoto3.jpg' )), ImageTk . PhotoImage ( Image . open ( 'testphoto4.jpg' ))
【文件预览】:
ImageViewer-master
----testphoto3.jpg(100KB)
----testphoto4.jpg(101KB)
----app.py(2KB)
----testphoto2.jpg(53KB)
----README.md(3KB)
----testphoto.jpg(116KB)

网友评论