From 0c38b53db7e6b0df5c30b176aa0cb49791f56ec8 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 24 Jan 2022 14:17:40 -0500 Subject: [PATCH 1/2] Addition of Text.fonts_installed_list to call reference. New coupon code for Udemy course (old one just expired - Udemy forces this to happen, wasn't a choice.) --- docs/call reference.md | 16 +++++++++++++++- docs/index.md | 4 ++-- docs/readme.md | 4 ++-- readme.md | 4 ++-- .../markdown input files/1_HEADER_top_part.md | 4 ++-- .../markdown input files/5_call_reference.md | 5 ++++- readme_creator/output/call reference.md | 16 +++++++++++++++- readme_creator/output/index.md | 4 ++-- 8 files changed, 44 insertions(+), 13 deletions(-) diff --git a/docs/call reference.md b/docs/call reference.md index 83632562..7967da2a 100644 --- a/docs/call reference.md +++ b/docs/call reference.md @@ -10499,7 +10499,21 @@ Parameter Descriptions: | bool | expand_y | If True Element will expand in the Vertical directions | | bool | expand_row | If True the row containing the element will also expand. Without this your element is "trapped" within the row | -#### get +### fonts_installed_list + +Returns a list of strings that tkinter reports as the installed fonts + +``` +fonts_installed_list() +``` + +Parameter Descriptions: + +|Type|Name|Meaning| +|--|--|--| +| List[str] | **RETURN** | List of the installed font names + +### get Gets the current value of the displayed text diff --git a/docs/index.md b/docs/index.md index dca7afed..49c01ece 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,9 +25,9 @@ apply coupon for discount: - 2E43BB0C9E0997247E30 + 5C14671AABA040B06FDC - diff --git a/docs/readme.md b/docs/readme.md index a5d9d495..7ff593aa 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -9,8 +9,8 @@ PySimpleGUI Udemy Course -
apply coupon for discount:
2E43BB0C9E0997247E30
- click here to visit course page +
apply coupon for discount:
5C14671AABA040B06FDC
+ click here to visit course page diff --git a/readme.md b/readme.md index a5d9d495..7ff593aa 100644 --- a/readme.md +++ b/readme.md @@ -9,8 +9,8 @@ PySimpleGUI Udemy Course -
apply coupon for discount:
2E43BB0C9E0997247E30
- click here to visit course page +
apply coupon for discount:
5C14671AABA040B06FDC
+ 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 0ec8342b..032b449b 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: - 2E43BB0C9E0997247E30 + 5C14671AABA040B06FDC - diff --git a/readme_creator/markdown input files/5_call_reference.md b/readme_creator/markdown input files/5_call_reference.md index 453e9620..321885e5 100644 --- a/readme_creator/markdown input files/5_call_reference.md +++ b/readme_creator/markdown input files/5_call_reference.md @@ -2300,7 +2300,10 @@ The following methods are here for backwards compatibility reference. You will ### expand -#### get +### fonts_installed_list + + +### get ### get_size diff --git a/readme_creator/output/call reference.md b/readme_creator/output/call reference.md index 83632562..7967da2a 100644 --- a/readme_creator/output/call reference.md +++ b/readme_creator/output/call reference.md @@ -10499,7 +10499,21 @@ Parameter Descriptions: | bool | expand_y | If True Element will expand in the Vertical directions | | bool | expand_row | If True the row containing the element will also expand. Without this your element is "trapped" within the row | -#### get +### fonts_installed_list + +Returns a list of strings that tkinter reports as the installed fonts + +``` +fonts_installed_list() +``` + +Parameter Descriptions: + +|Type|Name|Meaning| +|--|--|--| +| List[str] | **RETURN** | List of the installed font names + +### get Gets the current value of the displayed text diff --git a/readme_creator/output/index.md b/readme_creator/output/index.md index dca7afed..49c01ece 100644 --- a/readme_creator/output/index.md +++ b/readme_creator/output/index.md @@ -25,9 +25,9 @@ apply coupon for discount: - 2E43BB0C9E0997247E30 + 5C14671AABA040B06FDC - From 13ce12e875b1452d15fc3c84578dfa5a8fc3dc07 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 24 Jan 2022 14:21:26 -0500 Subject: [PATCH 2/2] New U-code... --- PySimpleGUI.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 81d4e08b..f963e6da 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "4.56.0.9 Unreleased" +version = __version__ = "4.56.0.10 Unreleased" _change_log = """ Changelog since 4.56.0 released to PyPI on 5-Jan-2022 @@ -24,6 +24,8 @@ _change_log = """ Added constant TABLE_CLICKED_INDICATOR that is the value '+CLICKED+' so that it can be referenced instead of user's hard cording a string 4.56.0.9 Added class method Text.fonts_installed_list - returns list of fonts as reported by tkinter + 4.56.0.10 + New coupon... hmmm... this is going to get tiring since coupons are forced to expire in a timeframe not our choosing """ __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -23313,7 +23315,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('Master or\nSponsor', frame7, k='-TAB SPONSOR-') + tab6 = Tab('Course 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-') @@ -23452,7 +23454,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!", '2E43BB0C9E0997247E30') + popup_scrolled("Oh look! It's a Udemy discsount coupon!", '5C14671AABA040B06FDC') 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)