Compare commits

..

No commits in common. "d515b2a0316884b3ee42908c3edb56931cc20ad8" and "76a907c5863a2b6f46be01f334e4993f075f6f03" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View File

@ -118,9 +118,7 @@ def main():
if event == sg.WIN_CLOSED:
break
# if event == "-TITLE-" or event == '-SUBTITLE-':
if event == "-SAVE-":
if event == "-TITLE-" or event == '-SUBTITLE-':
if values['-TITLE-'] != title or values['-SUBTITLE-'] != subtitle:
title = values['-TITLE-']
subtitle = values['-SUBTITLE-']
@ -130,6 +128,9 @@ def main():
bio = BytesIO()
thumbnail.save(bio, format = 'PNG')
window['-IMAGE-'].update(data = bio.getvalue())
if event == "-SAVE-":
save_path = save_filename()
image.save(save_path, 'PNG')

View File

@ -1,5 +1,4 @@
Pillow
pyinstaller
pyinstaller-hooks-contrib
PySimpleGUI==4.60.1
pywin32-ctypes
PySimpleGUI