diff --git a/docs/cookbook.md b/docs/cookbook.md index 18877a10..6eab50f3 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -19,6 +19,12 @@ with There is a short section in the Readme with instruction on installing PySimpleGUI 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! @@ -119,7 +125,7 @@ while True: # Event Loop window.Close() ``` - + # 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]) ``` + + # Simple data entry - Return Values As 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_']) ``` ---------------------- + + + + +------- @@ -333,7 +345,8 @@ while True: timer_running = not timer_running window.FindElement('_OUTPUT_').Update('{:02d}:{:02d}.{:02d}'.format((i // 100) // 60, (i // 100) % 60, i % 100)) ``` - + + -------- @@ -782,6 +795,8 @@ while True: # Event Loop window.Close() ``` + + ## 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. @@ -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. \ No newline at end of file