PySimpleGUI/Demo_Func_Callback_Simulati...

14 lines
400 B
Python
Raw Normal View History

2018-08-04 11:38:36 +00:00
import PySimpleGUI as sg
2018-09-23 16:16:50 +00:00
layout = [[sg.Text('Filename', )],
[sg.Input(), sg.FileBrowse()],
[sg.OK(), sg.Cancel()]]
2018-08-04 11:38:36 +00:00
2018-09-23 16:16:50 +00:00
button, (number,) = sg.FlexForm('Get filename example').LayoutAndRead(layout)
2018-08-04 11:38:36 +00:00
2018-09-23 16:16:50 +00:00
import PySimpleGUI as sg
2018-08-04 11:38:36 +00:00
2018-09-23 16:16:50 +00:00
button, (filename,) = sg.FlexForm('Get filename example').LayoutAndRead(
[[sg.Text('Filename')], [sg.Input(), sg.FileBrowse()], [sg.OK(), sg.Cancel()]])