Merge branch 'Dev-latest' of https://github.com/MikeTheWatchGuy/PySimpleGUI into Dev-latest
This commit is contained in:
commit
27b189a849
|
@ -20,6 +20,12 @@ There is a short section in the Readme with instruction on installing PySimpleGU
|
||||||
|
|
||||||
If you like this Cookbook, then you'll LOVE the 100+ sample programs that are just like these. You'll find them in the GitHub at http://www.PySimpleGUI.com. These Recipes are simply several of those programs displayed in document format.
|
If you like this Cookbook, then you'll LOVE the 100+ sample programs that are just like these. You'll find them in the GitHub at http://www.PySimpleGUI.com. These Recipes are simply several of those programs displayed in document format.
|
||||||
|
|
||||||
|
# Experimental repl.it Embedded Windows
|
||||||
|
|
||||||
|
You'll find a few of these Recipes are running in your browser window using PySimpleGUIWeb. They are included so that you can immediately play around with the SDK before installing one of the PySimpleGUI variants on your computer.
|
||||||
|
|
||||||
|
This is a new capability for PySimpleGUI that has only very recently been started. Only a few of the elements are operational using PySimpleGUIWeb. So, be prepared for some bugs. It's got a ways to go, but still seemed valuable to include.
|
||||||
|
|
||||||
# Copy these design patterns!
|
# Copy these design patterns!
|
||||||
|
|
||||||
All of your PySimpleGUI programs will utilize one of these 2 design patterns depending on the type of window you're implementing. The two types of windows are:
|
All of your PySimpleGUI programs will utilize one of these 2 design patterns depending on the type of window you're implementing. The two types of windows are:
|
||||||
|
@ -119,7 +125,7 @@ while True: # Event Loop
|
||||||
window.Close()
|
window.Close()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<iframe height="800px" width="100%" src="https://repl.it/@PySimpleGUI/Design-Pattern-2B-Persistent-Window-with-Updates?lite=false" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
|
||||||
|
|
||||||
|
|
||||||
# Simple Data Entry - Return Values As List
|
# Simple Data Entry - Return Values As List
|
||||||
|
@ -146,6 +152,8 @@ Same GUI screen except the return values are in a list instead of a dictionary a
|
||||||
print(event, values[0], values[1], values[2])
|
print(event, values[0], values[1], values[2])
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<iframe height="800px" width="100%" src="https://repl.it/@PySimpleGUI/Cookbook-Return-Values-as-List?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
|
||||||
|
|
||||||
# Simple data entry - Return Values As Dictionary
|
# Simple data entry - Return Values As Dictionary
|
||||||
A simple GUI with default values. Results returned in a dictionary.
|
A simple GUI with default values. Results returned in a dictionary.
|
||||||
|
|
||||||
|
@ -172,7 +180,11 @@ A simple GUI with default values. Results returned in a dictionary.
|
||||||
|
|
||||||
print(event, values['_NAME_'], values['_ADDRESS_'], values['_PHONE_'])
|
print(event, values['_NAME_'], values['_ADDRESS_'], values['_PHONE_'])
|
||||||
```
|
```
|
||||||
---------------------
|
|
||||||
|
|
||||||
|
<iframe height="800px" width="100%" src="https://repl.it/@PySimpleGUI/Cookbook-Return-Values-As-Dictionary?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
|
||||||
|
|
||||||
|
-------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -334,6 +346,7 @@ while True:
|
||||||
window.FindElement('_OUTPUT_').Update('{:02d}:{:02d}.{:02d}'.format((i // 100) // 60, (i // 100) % 60, i % 100))
|
window.FindElement('_OUTPUT_').Update('{:02d}:{:02d}.{:02d}'.format((i // 100) // 60, (i // 100) % 60, i % 100))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<iframe height="800px" width="100%" src="https://repl.it/@PySimpleGUI/Cookbook-Timer?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
|
||||||
|
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
@ -782,6 +795,8 @@ while True: # Event Loop
|
||||||
window.Close()
|
window.Close()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<iframe height="800px" width="100%" src="https://repl.it/@PySimpleGUI/Cookbook-Compound-Element?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
|
||||||
|
|
||||||
## Multiple Windows
|
## Multiple Windows
|
||||||
|
|
||||||
This recipe is a design pattern for multiple windows where the first window is not active while the second window is showing. The first window is hidden to discourage continued interaction.
|
This recipe is a design pattern for multiple windows where the first window is not active while the second window is showing. The first window is hidden to discourage continued interaction.
|
||||||
|
@ -1533,6 +1548,8 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo
|
||||||
|
|
||||||
Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar.
|
Your EXE file should run without creating a "shell window". Only the GUI window should show up on your taskbar.
|
||||||
<!--stackedit_data:
|
<!--stackedit_data:
|
||||||
eyJoaXN0b3J5IjpbNzE3MDQ5NjYwLC02Nzk1NDk2NzUsLTMzOT
|
eyJoaXN0b3J5IjpbLTk0Mjc2ODgzNywtMzUwNzA2ODE4LC0xOT
|
||||||
M3MTM1Ml19
|
gzMjAzNjMwLC0xMDAwMjc2OTU0LC0xNDAyODQwOTg2LDY2ODc4
|
||||||
|
OTc0OSwtMTE3NDc5OTg5Miw3MTcwNDk2NjAsLTY3OTU0OTY3NS
|
||||||
|
wtMzM5MzcxMzUyXX0=
|
||||||
-->
|
-->
|
Loading…
Reference in New Issue