Update image_split.py

main
pos97em56 5 months ago
parent 4dc8b82e85
commit 6570ee0239

@ -55,19 +55,6 @@ def select_image(root):
else:
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):
"""
动态调整图像大小以适应窗口大小

Loading…
Cancel
Save