Release 3.12.0 & 1.12.0

This commit is contained in:
MikeTheWatchGuy 2018-10-28 20:01:03 -04:00
parent 42c5499687
commit f60137c4b2
83 changed files with 2030 additions and 1118 deletions

View file

@ -19,9 +19,9 @@ stores the result in the variable fname, just like the command line parsing did.
'''
if len(sys.argv) == 1:
event, (fname,) = sg.Window('My Script').LayoutAndRead([[sg.T('Document to open')],
event, (fname,) = sg.Window('My Script').Layout([[sg.T('Document to open')],
[sg.In(), sg.FileBrowse()],
[sg.Open(), sg.Cancel()]])
[sg.CloseButton('Open'), sg.CloseButton('Cancel')]]).Read()
else:
fname = sys.argv[1]