+ 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-'),
], ],
] ]
@@ -114,6 +115,10 @@ class Gui:
if event == 'Exit' or event == sg.WIN_CLOSED: if event == 'Exit' or event == sg.WIN_CLOSED:
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(