adding from new mac

This commit is contained in:
2019-11-19 23:50:00 +00:00
parent a3ad3fd1d0
commit 16e455bc83
67 changed files with 2677 additions and 0 deletions

23
gui-test/demo.py Normal file
View File

@@ -0,0 +1,23 @@
import PySimpleGUI as sg
import sys
print(sys.version)
sg.change_look_and_feel('DarkAmber') # Add a little color
# All the stuff inside your window.
layout = [
[sg.Text('Some text on Row 1')],
[sg.Text('Enter something on Row 2'), sg.InputText()],
[sg.Button('Ok'), sg.Button('Cancel')],
]
# Create the Window
window = sg.Window('Window Title', layout)
# Event Loop to process "events" and get the "values" of the inputs
while True:
event, values = window.read()
if event in (None, 'Cancel'): # if user closes window or clicks cancel
break
print('You entered ', values[0])
window.close()

3
gui-test/popup.py Normal file
View File

@@ -0,0 +1,3 @@
import PySimpleGUIQt as sg
sg.Popup('Hello From PySimpleGUI!', 'This is the shortest GUI program ever!')

20
gui-test/popup2.py Normal file
View File

@@ -0,0 +1,20 @@
import PySimpleGUIQt as sg
myVar = 1
def main(var: str, *args, **kwargs) -> list:
event, values = sg.Window(
'Get filename example',
[
[sg.Text('Filename')],
[sg.Input(), sg.FileBrowse()],
[sg.OK(), sg.Cancel()],
],
).Read()
return list
# if __name__ == '__main__':
main()