Doc updates - call ref picked up new docstring, coupon codes (they keep expiring... working on a better solution)

This commit is contained in:
PySimpleGUI 2022-02-07 09:39:59 -05:00
parent 992c5db3bc
commit 0797d15dd6
8 changed files with 245 additions and 229 deletions

View file

@ -52,9 +52,9 @@ HOW DO I INSERT IMAGES ???
<span style="font-weight: normal;">
apply coupon for discount:
</span>
25506BBB290573A0BCB4
49FD2127F43EB64CE568
</div>
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=25506BBB290573A0BCB4','_blank');">
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=49FD2127F43EB64CE568','_blank');">
click here to visit course page
</button>
</div>

View file

@ -12087,6 +12087,13 @@ normal()
Call your function that will take a long time to execute. When it's complete, send an event
specified by the end_key.
This is a way for you to "ease into" threading without learning the details of threading.
Your function will run, and when it returns 2 things will happen:
1. The value you provide for end_key will be returned to you when you call window.read()
2. If your function returns a value, then the value returned will also be included in your windows.read call in the values dictionary
IMPORTANT - This method uses THREADS... this means you CANNOT make any PySimpleGUI calls from
the function you provide with the exception of one function, Window.write_event_value.
```
perform_long_operation(func, end_key)

View file

@ -25,9 +25,9 @@
<span style="font-weight: normal;">
apply coupon for discount:
</span>
25506BBB290573A0BCB4
49FD2127F43EB64CE568
</div>
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=25506BBB290573A0BCB4','_blank');">
<button style="margin: 0 auto; display: block; width: 200px; height: 70px; border-radius: 14px; border: none; padding: 10px; font-size: 18px; background-color: #357296; color: white; cursor: pointer;" onclick="window.open('https://www.udemy.com/course/pysimplegui/?couponCode=49FD2127F43EB64CE568','_blank');">
click here to visit course page
</button>
</div>