From 091db79c56414633b41a69473781d96a6b8b4b2b Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Tue, 11 Jan 2022 11:27:25 -0500 Subject: [PATCH] Added Udemy info to main(). --- PySimpleGUI.py | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index c777440b..d3cb3526 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "4.56.0.3 Uneleased" +version = __version__ = "4.56.0.5 Uneleased" _change_log = """ Changelog since 4.56.0 released to PyPI on 5-Jan-2022 @@ -13,6 +13,8 @@ _change_log = """ 4.56.0.4 Updated docstrings for all Element.update methods to indicate that the helper function "pin" need to be used to keep an element in place if visibility changes + 4.56.0.5 + Replaced sponsor tab with a tab about the udemy course as well as the buy me a coffee link. """ __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -400,6 +402,8 @@ DEFAULT_BASE64_LOADING_GIF = b'R0lGODlhQABAAKUAAAQCBJyenERCRNTS1CQiJGRmZLS2tPTy9 PSG_DEBUGGER_LOGO = b'iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiIAAC4iAari3ZIAAA2CSURBVHhe7VtplBXFGe03qBiN+RGJJjEGFGZYXWMETDhhZFEGDaA4KCbnmOTo0UQx7AwgMIDs+4ggGlAjI/BERxY3loggHpGdgRkGJlFQzxFzNCd6NC6hc28tXVXd/XrevBnyI/HC7ar6vuru735V1a9f9xvvG/yfI6XKBuO+QYN/hKIT+H1h8Lz3wG1lC+Z+KJu5obDrtc1QtAVPB98Ha/7y6uaTKBsFDUoARHP/m8BhYEcwfLyvwTQ4Gol4W1iyBIRfhmIa2ANsQpvCR+Cz4EIkYq+wNAA5JwDiL0TxJNhVGJLxMdgPSdgim8mA+GIUPHZTYYiHDz4Pjk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RSqbuRIRkJZEzc0RgY3dXIZjlyClEWPLSkkQ4W2kUzEvlDCl3EzGiCDipe0jukgFGBiVzCrHWu6/niZ85+OFPUK1GsOisW1aGt7wBMbs7WGDbbNp2jjzuamfdPSt5J7pL7U50l9qd6C61O9Fdaneiu9TuRHep3YnuUrsT/R/W77z2m0J2SQAAAABJRU5ErkJggg==' + BLANK_BASE64 = b'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAANSURBVBhXY2BgYGAAAAAFAAGKM+MAAAAAAElFTkSuQmCC' BLANK_BASE64 = b'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=' @@ -23210,10 +23214,13 @@ def _create_main_window(): T(' '), Tree(data=treedata, headings=['col1', 'col2', 'col3'], change_submits=True, auto_size_columns=True, num_rows=10, col0_width=10, key='_TREE_', show_expanded=True, )],[VStretch()]] - frame7 = [[T('ONE thing.... you had one thing to NOT do. "Do NOT click"')], [Image(data=_random_error_emoji())], - [T("""Well, now what?\nYou could take moment and help this project out by sponsoring.\nAt the moment PySimpleGUI is still free of charge to use.\nYou have no financial responsibility.\nI hope you are enjoying using PySimpleGUI whether you sponsor the product or not.""")], - [T('Click here to help --->>>'), - T('YES - I want to support PySimpleGUI!', enable_events=True, text_color='red', background_color='yellow', k='-SPONSOR-')], ] + frame7 = [[Image(EMOJI_BASE64_HAPPY_HEARTS, enable_events=True, k='-EMOJI-HEARTS-'), T('Do you'), Image(HEART_3D_BASE64, subsample=3, enable_events=True, k='-HEART-'), T('so far?')], + [T('Want to be taught PySimpleGUI? Then maybe the "Official PySimpleGUI Course" on Udemy is for you.')], + [T('Coupon codes are sometimes around so check docs, announcements, easter eggs on this page, to see specials.')], + [B(image_data=UDEMY_ICON, enable_events=True, k='-UDEMY-')], + [T('It is financially draining to operate a project this huge. ANY help helps and is very appreciated')], + [B(image_data=ICON_BUY_ME_A_COFFEE, enable_events=True, k='-COFFEE-')]] + pop_test_tab_layout = [ [T('Popup tests... good idea!'),Image(EMOJI_BASE64_HAPPY_IDEA), Push(), B('Popup', k='P '), B('No Titlebar', k='P NoTitle'), B('Not Modal', k='P NoModal'), B('Non Blocking', k='P NoBlock'), B('Auto Close', k='P AutoClose')], @@ -23241,7 +23248,7 @@ def _create_main_window(): tab3 = Tab('Table &\nTree', [[Column(frame5, element_justification='l', vertical_alignment='t')]], tooltip='tab 3', title_color='red', k='-TAB TABLE-') tab4 = Tab('Sliders\n', [[Frame('Variable Choice Group', frame4, title_color='blue')]], tooltip='tab 4', title_color='red', k='-TAB VAR-') tab5 = Tab('Input\nMultiline', [[Frame('TextInput', frame1, title_color='blue')]], tooltip='tab 5', title_color='red', k='-TAB TEXT-') - tab6 = Tab('Do NOT\nclick', frame7, k='-TAB NO CLICK-') + tab6 = Tab('Master or\nSponsor', frame7, k='-TAB SPONSOR-') tab7 = Tab('Popups\n', pop_test_tab_layout, k='-TAB POPUP-') tab8 = Tab('Themes\n', themes_tab_layout, k='-TAB THEMES-') tab9 = Tab('Global\nSettings', global_settings_tab_layout, k='-TAB GlOBAL SETTINGS-') @@ -23269,7 +23276,8 @@ def _create_main_window(): B('Upgrade PySimpleGUI from GitHub', button_color='white on red', key='-INSTALL-',pad=(1, 0)), B('Global Settings', tooltip='Settings across all PySimpleGUI programs',pad=(1, 0)), B('Exit', tooltip='Exit button',pad=(1, 0))], - [B(image_data=ICON_BUY_ME_A_COFFEE,pad=(1, 0), key='-COFFEE-'), + # [B(image_data=ICON_BUY_ME_A_COFFEE,pad=(1, 0), key='-COFFEE-'), + [B(image_data=UDEMY_ICON,pad=(1, 0), key='-UDEMY-'), B('SDK Reference', pad=(1, 0)), B('Open GitHub Issue',pad=(1, 0)), B('Versions for GitHub',pad=(1, 0)), ButtonMenu('ButtonMenu', button_menu_def, pad=(1, 0),key='-BMENU-', tearoff=True) ]] @@ -23301,7 +23309,7 @@ def _create_main_window(): # icon=PSG_DEBUGGER_LOGO, # icon=PSGDebugLogo, ) - window['-SPONSOR-'].set_cursor(cursor='hand2') + # window['-SPONSOR-'].set_cursor(cursor='hand2') window._see_through = False return window @@ -23369,12 +23377,18 @@ def main(): popup_scrolled('Returned:', popup_get_date()) elif event == 'Get Text': popup_scrolled('Returned:', popup_get_text('Enter some text')) + elif event.startswith('-UDEMY-'): + webbrowser.open_new_tab(r'https://udemy.com/PySimpleGUI') elif event.startswith('-SPONSOR-'): if webbrowser_available: - webbrowser.open_new_tab(r'https://www.paypal.me/psgui') + webbrowser.open_new_tab(r'https://www.paypal.me/pythongui') elif event == '-COFFEE-': if webbrowser_available: + # 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!", '2E43BB0C9E0997247E30') + 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) if search_string is not None: