Update digital_morphology.py

main
pos97em56 5 months ago
parent 38ce87d8bc
commit 4d549d031f

@ -50,19 +50,6 @@ def select_image(root):
else: else:
messagebox.showerror("错误", "没有选择图片路径") messagebox.showerror("错误", "没有选择图片路径")
def show_selected_image(root):
"""
显示已选择的图像
"""
global img_label
img_label = tk.Label(root)
img_label.pack(side=tk.TOP, pady=10)
img = Image.open(img_path)
img.thumbnail((160, 160))
img_tk = ImageTk.PhotoImage(img)
img_label.configure(image=img_tk)
img_label.image = img_tk
def changeSize(event, img, LabelPic): def changeSize(event, img, LabelPic):
""" """
根据窗口大小调整图像大小 根据窗口大小调整图像大小

Loading…
Cancel
Save