Demo updates with new theme calls
This commit is contained in:
parent
52700b0780
commit
5484b047c0
96 changed files with 3530 additions and 228 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
import PySimpleGUI as sg
|
||||
|
||||
import sys
|
||||
'''
|
||||
Quickly add a GUI to your script!
|
||||
|
||||
|
@ -13,6 +13,7 @@ The 1-line-GUI shows a form that allows the user to browse to find the filename.
|
|||
stores the result in the variable fname, just like the command line parsing did.
|
||||
'''
|
||||
|
||||
fname = ''
|
||||
if len(sys.argv) == 1:
|
||||
layout = [
|
||||
[sg.Text('Document to open')],
|
||||
|
@ -22,6 +23,7 @@ if len(sys.argv) == 1:
|
|||
window = sg.Window('My Script', layout)
|
||||
event, values = window.read()
|
||||
window.close()
|
||||
fname = values['-FNAME-']
|
||||
else:
|
||||
fname = sys.argv[1]
|
||||
if not fname:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue