且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Python Tkinter从标签中删除/删除图像

更新时间:2023-12-05 15:36:10

您非常接近-image参数只需要一个空字符串而不是None.

You're very close - the image parameter just needs an empty string rather than None.

def clear_label_image():
    brand_preview.config(image='')