Created
November 21, 2016 16:12
-
-
Save Nsk1107/9b43af3164e8aedae4a8fea22d5b1fa2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import cv2 | |
| import Image, ImageTk | |
| from Tkinter import * | |
| import Support | |
| def makeGUI(): | |
| top=Tk() | |
| top.geometry("600x449+650+151") | |
| top.title("Test Window") | |
| top.configure(background="#d9d9d9") | |
| lblFrame = Label(top) | |
| lblFrame.place(relx=0.03, rely=0.04, height=411, width=544) | |
| lblFrame.configure(background="#d9d9d9") | |
| lblFrame.configure(disabledforeground="#a3a3a3") | |
| lblFrame.configure(foreground="#000000") | |
| lblFrame.configure(text='''Label''') | |
| lblFrame.configure(width=544) | |
| cv2image = cv2.cvtColor(Support.frame, cv2.COLOR_BGR2RGBA) | |
| img = Image.fromarray(cv2image) | |
| imgtk = ImageTk.PhotoImage(image=img) | |
| lblFrame.imgtk = imgtk | |
| lblFrame.configure(image=imgtk) | |
| #lblFrame.after(10, show_frame) | |
| top.mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment