Update main.py

main
pl5uwmvih 5 months ago
parent 6b185d782b
commit 23d38c9912

@ -175,7 +175,7 @@ class Win(tk.Tk):
self.image_l.config(image=img_show)
self.image_l.image = img_show
return self.img
# 图像的和
def show_img2(self, n_img):
self.img2 = n_img # self.img PIL对象方便传值给picture类以及本类中其他需要使用PIL图像的地方
img_show2 = self.img2
@ -428,7 +428,7 @@ class Win(tk.Tk):
Sty_win.geometry('230x180')
bt1 = tk.Button(Sty_win, text='图像模糊', command=self.sty_1)
bt1.place(y=25, x=25, width=80)
bt2 = tk.Button(Sty_win, text='轮廓滤波', command=self.sty_2)
bt2 = tk.Button(Sty_win, text='轮廓增强', command=self.sty_2)
bt2.place(y=25, x=115, width=80)
bt3 = tk.Button(Sty_win, text='高斯模糊', command=self.sty_3)
bt3.place(y=65, x=25, width=80)

Loading…
Cancel
Save