diff --git a/docs/cookbook.md b/docs/cookbook.md
index f10d448b..f2fbf77d 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!
@@ -41,7 +47,7 @@ This will be the most common pattern you'll follow if you are not using an "even
import PySimpleGUI as sg
layout = [[sg.Text('My one-shot window.')],
- [sg.InputText(), sg.FileBrowse()],
+ [sg.InputText()],
[sg.Submit(), sg.Cancel()]]
window = sg.Window('Window Title').Layout(layout)
@@ -49,8 +55,11 @@ window = sg.Window('Window Title').Layout(layout)
event, values = window.Read()
window.Close()
-source_filename = values[0]
+text_input = values[0]
+print(text_input)
```
+
+
## Pattern 2 A - Persistent window (multiple reads using an event loop)
@@ -79,6 +88,10 @@ while True:
window.Close()
```
+
+
+
+
## Pattern 2 B - Persistent window (multiple reads using an event loop + updates data in window)
This is a slightly more complex, but maybe more realistic version that reads input from the user and displays that input as text in the window. Your program is likely to be doing both of those activities so this will give you a big jump-start.
@@ -112,7 +125,7 @@ while True: # Event Loop
window.Close()
```
-
+
# Simple Data Entry - Return Values As List
@@ -139,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.
@@ -165,7 +180,11 @@ A simple GUI with default values. Results returned in a dictionary.
print(event, values['_NAME_'], values['_ADDRESS_'], values['_PHONE_'])
```
----------------------
+
+
+
+
+-------
@@ -326,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))
```
-
+
+
--------
@@ -775,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.
@@ -949,6 +971,9 @@ There are a number of features used in this Recipe including:
window.FindElement('input').Update(keys_entered) # change the window to reflect current key string
```
+
+
+
## Animated Matplotlib Graph
@@ -1524,4 +1549,10 @@ That's all... Run your `my_program.exe` file on the Windows machine of your choo
>
(famous last words that screw up just about anything being referenced)
-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
+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