Merge pull request #5123 from PySimpleGUI/Dev-latest

Addition of Text.fonts_installed_list to call reference.  New coupon …
This commit is contained in:
PySimpleGUI 2022-01-24 14:22:52 -05:00 committed by GitHub
commit b6cbc58e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 49 additions and 16 deletions

View File

@ -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)

View File

@ -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

View File

@ -25,9 +25,9 @@
<span style="font-weight: normal;">
apply coupon for discount:
</span>
2E43BB0C9E0997247E30
5C14671AABA040B06FDC
</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/?referralCode=68B3C3DE22776E5F8EFE','_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=5C14671AABA040B06FDC','_blank');">
click here to visit course page
</button>
</div>

View File

@ -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>2E43BB0C9E0997247E30</h6>
<a href="https://www.udemy.com/course/pysimplegui/?referralCode=68B3C3DE22776E5F8EFE">click here to visit course page</a>
<h5>apply coupon for discount:<br>5C14671AABA040B06FDC</h6>
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=5C14671AABA040B06FDC">click here to visit course page</a>
</td>
</tr>
</table>

View File

@ -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>2E43BB0C9E0997247E30</h6>
<a href="https://www.udemy.com/course/pysimplegui/?referralCode=68B3C3DE22776E5F8EFE">click here to visit course page</a>
<h5>apply coupon for discount:<br>5C14671AABA040B06FDC</h6>
<a href="https://www.udemy.com/course/pysimplegui/?couponCode=5C14671AABA040B06FDC">click here to visit course page</a>
</td>
</tr>
</table>

View File

@ -52,9 +52,9 @@ HOW DO I INSERT IMAGES ???
<span style="font-weight: normal;">
apply coupon for discount:
</span>
2E43BB0C9E0997247E30
5C14671AABA040B06FDC
</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/?referralCode=68B3C3DE22776E5F8EFE','_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=5C14671AABA040B06FDC','_blank');">
click here to visit course page
</button>
</div>

View File

@ -2300,7 +2300,10 @@ The following methods are here for backwards compatibility reference. You will
### expand
<!-- <+Text.expand+> -->
#### get
### fonts_installed_list
<!-- <+Text.fonts_installed_list+> -->
### get
<!-- <+Text.get+> -->
### get_size

View File

@ -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

View File

@ -25,9 +25,9 @@
<span style="font-weight: normal;">
apply coupon for discount:
</span>
2E43BB0C9E0997247E30
5C14671AABA040B06FDC
</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/?referralCode=68B3C3DE22776E5F8EFE','_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=5C14671AABA040B06FDC','_blank');">
click here to visit course page
</button>
</div>