Doc updates - call ref picked up new docstring, coupon codes (they keep expiring... working on a better solution)
This commit is contained in:
parent
992c5db3bc
commit
0797d15dd6
8 changed files with 245 additions and 229 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/python3
|
||||
version = __version__ = "4.56.0.19 Unreleased"
|
||||
version = __version__ = "4.56.0.20 Unreleased"
|
||||
|
||||
_change_log = """
|
||||
Changelog since 4.56.0 released to PyPI on 5-Jan-2022
|
||||
|
@ -49,6 +49,8 @@ _change_log = """
|
|||
4.56.0.19
|
||||
Docstring update for Window.perform_long_operation - warns users that Thread are used and thus no PySimpleGUI calls are allowed. Also
|
||||
added description of exactly what happens when the user's function completes. Thank you @zhaowb for pointing out this warning wasn't present.
|
||||
4.56.0.20
|
||||
Anbother coupon - only able to do 5 days at a time right now....
|
||||
"""
|
||||
|
||||
__version__ = version.split()[0] # For PEP 396 and PEP 345
|
||||
|
@ -23526,7 +23528,7 @@ def main():
|
|||
# webbrowser.open_new_tab(r'https://udemy.com/PySimpleGUI')
|
||||
webbrowser.open_new_tab(r'https://www.buymeacoffee.com/PySimpleGUI')
|
||||
elif event in ('-EMOJI-HEARTS-', '-HEART-'):
|
||||
popup_scrolled("Oh look! It's a Udemy discsount coupon!", '25506BBB290573A0BCB4')
|
||||
popup_scrolled("Oh look! It's a Udemy discsount coupon!", '49FD2127F43EB64CE568')
|
||||
|
||||
elif event == 'Themes':
|
||||
search_string = popup_get_text('Enter a search term or leave blank for all themes', 'Show Available Themes', keep_on_top=True)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
<img src="https://www.dropbox.com/s/6wzf3ebmj97v4zs/PySimpleGUI-GitHub-Udemy-Course.png?raw=1" width=200 alt="PySimpleGUI Udemy Course">
|
||||
</td>
|
||||
<td>
|
||||
<h5>apply coupon for discount:<br>25506BBB290573A0BCB4</h6>
|
||||
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=25506BBB290573A0BCB4">click here to visit course page</a>
|
||||
<h5>apply coupon for discount:<br>49FD2127F43EB64CE568</h6>
|
||||
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=49FD2127F43EB64CE568">click here to visit course page</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -1,219 +1,219 @@
|
|||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue