Merge pull request #2826 from PySimpleGUI/Dev-latest

Enabled window to be resized. When it does, the image also resizes!  …
This commit is contained in:
PySimpleGUI 2020-04-17 11:34:32 -04:00 committed by GitHub
commit b0eca3b489
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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()