From 5a6d35d5903eef2bc693c67889baf35d571a1aa6 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Fri, 17 Apr 2020 11:34:07 -0400 Subject: [PATCH] Enabled window to be resized. When it does, the image also resizes! Very nice!! --- DemoPrograms/Demo_Media_Player_VLC_Based.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DemoPrograms/Demo_Media_Player_VLC_Based.py b/DemoPrograms/Demo_Media_Player_VLC_Based.py index f2ded0df..268308cf 100644 --- a/DemoPrograms/Demo_Media_Player_VLC_Based.py +++ b/DemoPrograms/Demo_Media_Player_VLC_Based.py @@ -23,8 +23,9 @@ layout = [[sg.Input(default_text='Video URL or Local Path:', size=(30, 1), key=' [btn('previous'), btn('play'), btn('next'), btn('pause'), btn('stop')], [sg.Text('Load media to start', key='-MESSAGE_AREA-')]] -window = sg.Window('Mini Player', layout, element_justification='center', finalize=True) +window = sg.Window('Mini Player', layout, element_justification='center', finalize=True, resizable=True) +window['-VID_OUT-'].expand(True, True) # type: sg.Element #------------ Media Player Setup ---------# inst = vlc.Instance()