|
1 | 1 | #!/usr/bin/python3 |
2 | 2 |
|
3 | | -version = __version__ = "4.61.0.166 Unreleased" |
| 3 | +version = __version__ = "4.61.0.167 Unreleased" |
4 | 4 |
|
5 | 5 | _change_log = """ |
6 | 6 | Changelog since 4.60.0 released to PyPI on 8-May-2022 |
|
159 | 159 | Use Withdraw to hide window during creation |
160 | 160 | 4.61.0.63 |
161 | 161 | Addition of checklist item when logging new issue to GitHub - upgraded to latest version of PySimpleGUI on PyPI |
162 | | - 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 |
| 162 | + 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 |
163 | 163 | 4.61.0.64 |
164 | 164 | Allow set_options(window_location=None) to indicate the OS should provide the window location. |
165 | 165 | This will stop the Alpha channel being set to 0 when the window is created |
|
400 | 400 | 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 |
401 | 401 | 4.61.0.166 |
402 | 402 | New Udemy coupon |
| 403 | + 4.61.0.167 |
| 404 | + New Udemy coupon |
| 405 | + Fix for bad user settings key for user watermark. Added Python version to watermark |
403 | 406 | """ |
404 | 407 |
|
405 | 408 | __version__ = version.split()[0] # For PEP 396 and PEP 345 |
@@ -25631,15 +25634,17 @@ def _global_settings_get_watermark_info(): |
25631 | 25634 | return |
25632 | 25635 | forced = Window._watermark_temp_forced |
25633 | 25636 | prefix_text = pysimplegui_user_settings.get('-watermark text-', '') |
25634 | | - ver_text = ' ' + version if pysimplegui_user_settings.get('-watermark ver-', False if not forced else True) or forced else '' |
25635 | | - framework_ver_text = ' ' + framework_version if pysimplegui_user_settings.get('-watermark framework ver-', False if not forced else True) or forced else '' |
| 25637 | + |
| 25638 | + ver_text = ' ' + version.split(" ", 1)[0] if pysimplegui_user_settings.get('-watermark ver-', False if not forced else True) or forced else '' |
| 25639 | + framework_ver_text = ' Tk ' + framework_version if pysimplegui_user_settings.get('-watermark framework ver-', False if not forced else True) or forced else '' |
25636 | 25640 | watermark_font = pysimplegui_user_settings.get('-watermark font-', '_ 9 bold') |
25637 | 25641 | # background_color = pysimplegui_user_settings.get('-watermark bg color-', 'window.BackgroundColor') |
25638 | | - user_text = pysimplegui_user_settings.get('-watermark user text-', '') |
| 25642 | + user_text = pysimplegui_user_settings.get('-watermark text-', '') |
| 25643 | + python_text = ' Py {}.{}.{}'.format(sys.version_info.major, sys.version_info.minor, sys.version_info.micro) |
25639 | 25644 | if user_text: |
25640 | 25645 | text = str(user_text) |
25641 | 25646 | else: |
25642 | | - text = prefix_text + ver_text + framework_ver_text |
| 25647 | + text = prefix_text + ver_text + python_text + framework_ver_text |
25643 | 25648 | Window._watermark = lambda window: Text(text, font=watermark_font, background_color= window.BackgroundColor) |
25644 | 25649 |
|
25645 | 25650 |
|
@@ -26378,15 +26383,15 @@ def main(): |
26378 | 26383 | elif event == 'Get Text': |
26379 | 26384 | popup_scrolled('Returned:', popup_get_text('Enter some text', keep_on_top=True)) |
26380 | 26385 | elif event.startswith('-UDEMY-'): |
26381 | | - webbrowser.open_new_tab(r'https://www.udemy.com/course/pysimplegui/?couponCode=A2E4F6B1B75EC3D90133') |
| 26386 | + webbrowser.open_new_tab(r'https://www.udemy.com/course/pysimplegui/?couponCode=65DBBEA0EC4C3B093FD1') |
26382 | 26387 | elif event.startswith('-SPONSOR-'): |
26383 | 26388 | if webbrowser_available: |
26384 | 26389 | webbrowser.open_new_tab(r'https://www.paypal.me/pythongui') |
26385 | 26390 | elif event == '-COFFEE-': |
26386 | 26391 | if webbrowser_available: |
26387 | 26392 | webbrowser.open_new_tab(r'https://www.buymeacoffee.com/PySimpleGUI') |
26388 | 26393 | elif event in ('-EMOJI-HEARTS-', '-HEART-', '-PYTHON HEARTS-'): |
26389 | | - popup_scrolled("Oh look! It's a Udemy discount coupon!", 'A2E4F6B1B75EC3D90133', |
| 26394 | + popup_scrolled("Oh look! It's a Udemy discount coupon!", '65DBBEA0EC4C3B093FD1', |
26390 | 26395 | 'A personal message from Mike -- thank you so very much for supporting PySimpleGUI!', title='Udemy Coupon', image=EMOJI_BASE64_MIKE, keep_on_top=True) |
26391 | 26396 |
|
26392 | 26397 | elif event == 'Themes': |
|
0 commit comments