def initUI(self):
self.parent.title("Image Copy-Move Detection")
self.style = Style().configure("TFrame", background="#333")
# self.style.theme_use("default")
self.pack(fill=BOTH, expand=1)
quitButton = Button(self, text="Open File", command=self.onFilePicker)
quitButton.place(x=10, y=10)
printButton = Button(self, text="Detect", command=self.onDetect)
printButton.place(x=10, y=40)
self.textBoxFile = Text(self, state='disabled', width=80, height = 1)
self.textBoxFile.place(x=90, y=10)
self.textBoxLog = Text(self, state='disabled', width=40, height=3)
self.textBoxLog.place(x=90, y=40)
# absolute image widget
imageLeft = Image.open("resource/empty.png")
imageLeftLabel = ImageTk.PhotoImage(imageLeft)
self.labelLeft = Label(self, image=imageLeftLabel)
self.labelLeft.image = imageLeftLabel
self.labelLeft.place(x=5, y=100)
imageRight = Image.open("resource/empty.png")
imageRightLabel = ImageTk.PhotoImage(imageRight)
self.labelRight = Label(self, image=imageRightLabel)
self.labelRight.image = imageRightLabel
self.labelRight.place(x=525, y=100)
self.centerWindow()
main_GUI.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录