Set location to 0,0

This commit is contained in:
PySimpleGUI 2019-12-08 09:17:42 -05:00
parent ca10782397
commit fa24ab4607
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import tkinter
import cv2, PySimpleGUI as sg
window, cap = sg.Window('Demo Application - OpenCV Integration', [[sg.Image(filename='', key='image')], ], location=(800, 400)), cv2.VideoCapture(0)
window, cap = sg.Window('Demo Application - OpenCV Integration', [[sg.Image(filename='', key='image')], ], location=(0, 0)), cv2.VideoCapture(0)
while window(timeout=20)[0] is not None:
window['image'](data=cv2.imencode('.png', cap.read()[1])[1].tobytes())