def onDetect(self):
if self.imageName == "":
mbox.showerror("Error", 'Citra masukan belum terisi\nSilakan pilih dengan menekan tombol "Open File"')
else:
self.textBoxLog.config(state='normal')
self.textBoxLog.insert(END, "Mendeteksi: "+self.imageName+"\n")
self.textBoxLog.see(END)
self.textBoxLog.config(state='disabled')
imageResultPath = CopyMoveDetection.detect(self.imagePath, self.imageName, '../testcase_result/', blockSize=32)
newImageRight = Image.open(imageResultPath)
imageRightLabel = ImageTk.PhotoImage(newImageRight)
self.labelRight = Label(self, image=imageRightLabel)
self.labelRight.image = imageRightLabel
self.labelRight.place(x=525, y=100)
self.textBoxLog.config(state='normal')
self.textBoxLog.insert(END, "Selesai.")
self.textBoxLog.see(END)
self.textBoxLog.config(state='disabled')
pass
pass
main_GUI.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录