How to resize the image on label widget

青春壹個敷衍的年華 提交于 2019-12-11 18:27:19

问题


Currently, I use label widget with the -image option to display a image on the TK GUI as following :

image create photo plot1 -file new.gif
label .la1 -image plot1 -background white

It works well. But now I want to make the image resize as the user drags the GUI.

For other tk widget, The columnconfigure and rowconfigure can realize the resize function. But how to do this for image on label?

来源:https://stackoverflow.com/questions/31285918/how-to-resize-the-image-on-label-widget

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!