问题
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