diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 635a3527..b5de18b1 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.61.0.166 Unreleased" +version = __version__ = "4.61.0.167 Unreleased" _change_log = """ Changelog since 4.60.0 released to PyPI on 8-May-2022 @@ -159,7 +159,7 @@ _change_log = """ Use Withdraw to hide window during creation 4.61.0.63 Addition of checklist item when logging new issue to GitHub - upgraded to latest version of PySimpleGUI on PyPI - Listbox justification parameter found to not be implemented on some early verions of tkinter so had to protect this situation. This new feature crached on the Pi for example + Listbox justification parameter found to not be implemented on some early verions of tkinter so had to protect this situation. This new feature crashed on the Pi for example 4.61.0.64 Allow set_options(window_location=None) to indicate the OS should provide the window location. This will stop the Alpha channel being set to 0 when the window is created @@ -400,6 +400,9 @@ _change_log = """ Added new method - set_ibeam_color to Input, Multiline and Spin elements. Combo is a ttk element so it's not available using this call yet 4.61.0.166 New Udemy coupon + 4.61.0.167 + New Udemy coupon + Fix for bad user settings key for user watermark. Added Python version to watermark """ __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -25631,15 +25634,17 @@ def _global_settings_get_watermark_info(): return forced = Window._watermark_temp_forced prefix_text = pysimplegui_user_settings.get('-watermark text-', '') - ver_text = ' ' + version if pysimplegui_user_settings.get('-watermark ver-', False if not forced else True) or forced else '' - framework_ver_text = ' ' + framework_version if pysimplegui_user_settings.get('-watermark framework ver-', False if not forced else True) or forced else '' + + ver_text = ' ' + version.split(" ", 1)[0] if pysimplegui_user_settings.get('-watermark ver-', False if not forced else True) or forced else '' + framework_ver_text = ' Tk ' + framework_version if pysimplegui_user_settings.get('-watermark framework ver-', False if not forced else True) or forced else '' watermark_font = pysimplegui_user_settings.get('-watermark font-', '_ 9 bold') # background_color = pysimplegui_user_settings.get('-watermark bg color-', 'window.BackgroundColor') - user_text = pysimplegui_user_settings.get('-watermark user text-', '') + user_text = pysimplegui_user_settings.get('-watermark text-', '') + python_text = ' Py {}.{}.{}'.format(sys.version_info.major, sys.version_info.minor, sys.version_info.micro) if user_text: text = str(user_text) else: - text = prefix_text + ver_text + framework_ver_text + text = prefix_text + ver_text + python_text + framework_ver_text Window._watermark = lambda window: Text(text, font=watermark_font, background_color= window.BackgroundColor) @@ -26378,7 +26383,7 @@ def main(): elif event == 'Get Text': popup_scrolled('Returned:', popup_get_text('Enter some text', keep_on_top=True)) elif event.startswith('-UDEMY-'): - webbrowser.open_new_tab(r'https://www.udemy.com/course/pysimplegui/?couponCode=A2E4F6B1B75EC3D90133') + webbrowser.open_new_tab(r'https://www.udemy.com/course/pysimplegui/?couponCode=65DBBEA0EC4C3B093FD1') elif event.startswith('-SPONSOR-'): if webbrowser_available: webbrowser.open_new_tab(r'https://www.paypal.me/pythongui') @@ -26386,7 +26391,7 @@ def main(): if webbrowser_available: webbrowser.open_new_tab(r'https://www.buymeacoffee.com/PySimpleGUI') elif event in ('-EMOJI-HEARTS-', '-HEART-', '-PYTHON HEARTS-'): - popup_scrolled("Oh look! It's a Udemy discount coupon!", 'A2E4F6B1B75EC3D90133', + popup_scrolled("Oh look! It's a Udemy discount coupon!", '65DBBEA0EC4C3B093FD1', 'A personal message from Mike -- thank you so very much for supporting PySimpleGUI!', title='Udemy Coupon', image=EMOJI_BASE64_MIKE, keep_on_top=True) elif event == 'Themes': diff --git a/docs/cookbook.md b/docs/cookbook.md index 8cae312c..7c8d6778 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -25,9 +25,9 @@ apply coupon for discount: - A2E4F6B1B75EC3D90133 + 65DBBEA0EC4C3B093FD1 - diff --git a/docs/index.md b/docs/index.md index 1dfb749a..caca6790 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,9 +25,9 @@ apply coupon for discount: - A2E4F6B1B75EC3D90133 + 65DBBEA0EC4C3B093FD1 - diff --git a/docs/readme.md b/docs/readme.md index 181372e7..56958436 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -9,8 +9,8 @@ PySimpleGUI Udemy Course -
apply coupon for discount:
A2E4F6B1B75EC3D90133
- click here to visit course page +
apply coupon for discount:
65DBBEA0EC4C3B093FD1
+ click here to visit course page diff --git a/readme.md b/readme.md index 181372e7..56958436 100644 --- a/readme.md +++ b/readme.md @@ -9,8 +9,8 @@ PySimpleGUI Udemy Course -
apply coupon for discount:
A2E4F6B1B75EC3D90133
- click here to visit course page +
apply coupon for discount:
65DBBEA0EC4C3B093FD1
+ click here to visit course page diff --git a/readme_creator/markdown input files/1_HEADER_top_part.md b/readme_creator/markdown input files/1_HEADER_top_part.md index e8d716ae..f0d043bb 100644 --- a/readme_creator/markdown input files/1_HEADER_top_part.md +++ b/readme_creator/markdown input files/1_HEADER_top_part.md @@ -52,9 +52,9 @@ HOW DO I INSERT IMAGES ??? apply coupon for discount: - A2E4F6B1B75EC3D90133 + 65DBBEA0EC4C3B093FD1 - diff --git a/readme_creator/output/index.md b/readme_creator/output/index.md index 1dfb749a..caca6790 100644 --- a/readme_creator/output/index.md +++ b/readme_creator/output/index.md @@ -25,9 +25,9 @@ apply coupon for discount: - A2E4F6B1B75EC3D90133 + 65DBBEA0EC4C3B093FD1 -