+ custom file name

This commit is contained in:
oleting
2020-12-27 20:31:44 +01:00
parent 488837237c
commit c0c318de57

View File

@@ -53,7 +53,8 @@ class Gui:
], ],
[ [
sg.Text('Output name'), sg.Text('Output name'),
sg.In(size=(25, 1), enable_events=True), sg.In(size=(25, 1), enable_events=True, key='-OUTPUT NAME-'),
sg.Button('Done', key='-SET OUTPUT NAME-'),
], ],
] ]
@@ -115,6 +116,10 @@ class Gui:
logging.debug(('Exit GUI')) logging.debug(('Exit GUI'))
break break
if event == '-SET OUTPUT NAME-':
output_name = values['-OUTPUT NAME-']
if event == '-CREDITS-': if event == '-CREDITS-':
sg.popup( sg.popup(
'This is made by Plexx, Weckyy and Oleting. Used PySimpleGUI and Pillow', title='Credits') 'This is made by Plexx, Weckyy and Oleting. Used PySimpleGUI and Pillow', title='Credits')