From d39d12c3277f3676694a5ab4c21b17240e14481f Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Thu, 6 Sep 2018 18:02:37 -0400 Subject: [PATCH] Sized controls to fit 1280x720 video --- Demo_OpenCV.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Demo_OpenCV.py b/Demo_OpenCV.py index f7b9f68c..9d32d465 100644 --- a/Demo_OpenCV.py +++ b/Demo_OpenCV.py @@ -12,6 +12,7 @@ a temp file. Clearly... clearly... this is not the optimal solution and one is Until then enjoy it working somewhat slowly. """ + def main(): filename = sg.PopupGetFile('Filename to play') if filename is None: @@ -24,10 +25,10 @@ def main(): sg.ChangeLookAndFeel('Dark') # define the form layout - layout = [[sg.Text('OpenCV Demo', size=(40, 1), justification='center', font='Helvetica 20')], + layout = [[sg.Text('OpenCV Demo', size=(15, 1),pad=((510,0),3), justification='center', font='Helvetica 20')], [sg.Image(filename='', key='image')], - [sg.Slider(range=(0, num_frames), size=(60, 10), orientation='h', key='slider')], - [sg.ReadFormButton('Exit', size=(10, 2), pad=((280, 0), 3), font='Helvetica 14')]] + [sg.Slider(range=(0, num_frames), size=(115, 10), orientation='h', key='slider')], + [sg.ReadFormButton('Exit', size=(10, 2), pad=((600, 0), 3), font='Helvetica 14')]] # create the form and show it without the plot form = sg.FlexForm('Demo Application - Embedding Matplotlib In PySimpleGUI', no_titlebar=True)