Compare commits
2 Commits
76a907c586
...
d515b2a031
Author | SHA1 | Date | |
---|---|---|---|
d515b2a031 | |||
828f266171 |
@ -118,7 +118,9 @@ def main():
|
|||||||
if event == sg.WIN_CLOSED:
|
if event == sg.WIN_CLOSED:
|
||||||
break
|
break
|
||||||
|
|
||||||
if event == "-TITLE-" or event == '-SUBTITLE-':
|
# if event == "-TITLE-" or event == '-SUBTITLE-':
|
||||||
|
|
||||||
|
if event == "-SAVE-":
|
||||||
if values['-TITLE-'] != title or values['-SUBTITLE-'] != subtitle:
|
if values['-TITLE-'] != title or values['-SUBTITLE-'] != subtitle:
|
||||||
title = values['-TITLE-']
|
title = values['-TITLE-']
|
||||||
subtitle = values['-SUBTITLE-']
|
subtitle = values['-SUBTITLE-']
|
||||||
@ -128,9 +130,6 @@ def main():
|
|||||||
bio = BytesIO()
|
bio = BytesIO()
|
||||||
thumbnail.save(bio, format = 'PNG')
|
thumbnail.save(bio, format = 'PNG')
|
||||||
window['-IMAGE-'].update(data = bio.getvalue())
|
window['-IMAGE-'].update(data = bio.getvalue())
|
||||||
|
|
||||||
|
|
||||||
if event == "-SAVE-":
|
|
||||||
save_path = save_filename()
|
save_path = save_filename()
|
||||||
image.save(save_path, 'PNG')
|
image.save(save_path, 'PNG')
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
Pillow
|
Pillow
|
||||||
pyinstaller
|
pyinstaller
|
||||||
pyinstaller-hooks-contrib
|
pyinstaller-hooks-contrib
|
||||||
PySimpleGUI
|
PySimpleGUI==4.60.1
|
||||||
|
pywin32-ctypes
|
||||||
|
Loading…
Reference in New Issue
Block a user