Fix for scrollable column still scrolling despite contents being smaller than what should require scrollbars

This commit is contained in:
PySimpleGUI 2021-04-29 16:20:38 -04:00
parent 5625d536cf
commit 48530f123b
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
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(key='-IMAGE-')], ], location=(800, 400)), cv2.VideoCapture(0)
while window(timeout=20)[0] is not None:
window['image'](data=cv2.imencode('.png', cap.read()[1])[1].tobytes())
window['-IMAGE-'](data=cv2.imencode('.png', cap.read()[1])[1].tobytes())