From 7862cf71109e521feb2263fd68dcaae8a5fed581 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 21 Nov 2022 14:26:31 -0500 Subject: [PATCH] New Udemy code --- PySimpleGUI.py | 15 +++++---- docs/call reference.md | 32 ++++++++++++++++--- docs/index.md | 4 +-- docs/readme.md | 6 ++-- readme.md | 6 ++-- .../markdown input files/1_HEADER_top_part.md | 4 +-- .../markdown input files/5_call_reference.md | 4 +-- readme_creator/output/call reference.md | 32 ++++++++++++++++--- readme_creator/output/index.md | 4 +-- 9 files changed, 80 insertions(+), 27 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 8546836b..74a0ae1e 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.60.4.119 Unreleased" +version = __version__ = "4.60.4.120 Unreleased" _change_log = """ Changelog since 4.60.0 released to PyPI on 8-May-2022 @@ -301,6 +301,8 @@ _change_log = """ Completed addition of zoom options for images by adding image_zoom parameter to Tab element 4.60.4.119 Fixed Neon Yellow theme. Had an extra "#" in a color. + 4.60.4.120 + New coupon code """ __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -25890,7 +25892,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=346BC463A0F8759BEF1B') + webbrowser.open_new_tab(r'https://www.udemy.com/course/pysimplegui/?couponCode=09B234B00A7E89CC8C1F') elif event.startswith('-SPONSOR-'): if webbrowser_available: webbrowser.open_new_tab(r'https://www.paypal.me/pythongui') @@ -25898,7 +25900,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!", '346BC463A0F8759BEF1B', + popup_scrolled("Oh look! It's a Udemy discount coupon!", '09B234B00A7E89CC8C1F', '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': @@ -26043,10 +26045,9 @@ if _mac_should_set_alpha_to_99(): # print('Your Mac patches are:') # print('Modal windows disabled:', ENABLE_MAC_MODAL_DISABLE_PATCH) # print('No titlebar patch:', ENABLE_MAC_NOTITLEBAR_PATCH) -# print('No grab anywhere allowed with titlebar:', ENABLE_MAC_DISABLE_GRAB_ANYWHERE_WITH_TITLEBAR) +# print ('No grab anywhere allowed with titlebar:', ENABLE_MAC_DISABLE_GRAB_ANYWHERE_WITH_TITLEBAR) # print('Currently the no titlebar patch ' + ('WILL' if _mac_should_apply_notitlebar_patch() else 'WILL NOT') + ' be applied') - - + # -------------------------------- ENTRY POINT IF RUN STANDALONE -------------------------------- # if __name__ == '__main__': # To execute the upgrade from command line, type: @@ -26059,4 +26060,4 @@ if __name__ == '__main__': exit(0) main() exit(0) -#6df7f179e86248e52878ca698d9b7b299699286d6d593170fd043d2805707c05b30c9887c3a39f402421b9ddd840da68f706ea4cb9aa7a913a1616b42f43317305e0b459cf6fae38bd26df4f428616185ae09f580b50200590496907d3d14447d36a16d64112db7b6b21e1d95b8ece671f2d348e8a689083c0aafc5921e91d1bec3ad5e1eeea08fa0bb5c6621a072b28277168b65a5fe60273c20da60e78001b4a4417fe4243d1c0704ca3f5123737d246eced822d6c74b01755981c5ed2000abba2fbd25f9e59a7b51e957869d3d0ce489ed66e72b9c320c53dd7af7f4589c2e714f16e38bb564dfa4b7ad23cd57352064080b07aee4268a3db34a009169e3aa6b1965e579bb777478733eba17d067ffb3722f2b69475a7d16e30749b410e01eac1f441c9b5d4a4a052e033fc3cf808dea1c3648fb898e4250a94afb2e6c4a09ae643b08b2293362b3b4ebf21415c20c6e8cfbbbd9645d9c1d99db0dc8f65c8ae9358006ffbda51323c1874f8d4737243fb57abe0006effd31138c433b7eb41c8dc421841ff35af428980b7bf7d7ef6e58e4e1269534ca3ae2ba5049576d73e5924eccaa83c53f4f9265968bc5a94c21b1b4a934f04705afb620647b523bbe1acc7edc573a2f85f28c98752d7b195f690a0289137c6770aa9dc28a6e2bb668b446b346be7f021eb3d46253653b1716caf30311d2932a32321d3e3568dc26ee6 \ No newline at end of file +#49882f8bd30e575c789d482a12b72e3a335d1abdee926d149c5fbe76aa226f2abb45a677f8d7a7013f31153a988c284ab9930f9abbbc9ac07b921fb03b11fe7c5cffc1a7ea5fcfadba44aad271eb74690a3a41fb741b36cbd6eff8cdf20f6e933e41ef7c3137f9b027d749ad85bd76a85f03b971ce71a7d446284c32fb4989ed04c13ebffa25960ae20581eedf7aae954f005ac7ebe660071e9d9bf938b6743cb148630e8943fdc2cc33e19b132d267f6e5df55d6967c82c4cb57dce54dce9fbfb1c678ced3c7a97447ef487102141684c3a99bcddd504ba2b3062abef7ccf43831e82b0ab456deac0ff7a423dd26b9ac273a47467447de4a2e6bcbfcecbf89a701585b1f71110897b25a7369c3afeb37955ad11933b2ad361877401d5eae3fa6ef31eb78f4b16ed02d1fcc015f4cd2ef7895714e561b1e31fe5b33e49285fb9d592e1acb0dc2513de5e817b1e83a0fcb89a4fb4830441b0b356ab0f4e754664761e8737eb03dded3f9aca91eccc4c66f33a33a3e25340c6ff41d0ecd1d0b410a83d8560c1164ea5ac6eff196fdf178fd38193b4bd4a061cc5edc6f233393d0675eda3e14634d535a42f5237331bfac399eaa98d16357e14019652132a22d7772fd0ede783386a22bddc21040c1ea5e8e59e2048af95e019f3d0363aab5581543d65e98b48b9a72402936ad893e2a1e614aaf5ac8553e536c77ee032f519c7a9 \ No newline at end of file diff --git a/docs/call reference.md b/docs/call reference.md index b64e9525..5355d592 100644 --- a/docs/call reference.md +++ b/docs/call reference.md @@ -25,9 +25,9 @@ apply coupon for discount: - D5570C66DBD8E42C7963 + 09B234B00A7E89CC8C1F - @@ -71,6 +71,7 @@ Button(button_text = "", image_data = None, image_size = (None, None), image_subsample = None, + image_zoom = None, image_source = None, border_width = None, size = (None, None), @@ -114,6 +115,7 @@ Parameter Descriptions: | bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data | | (int, int) | image_size | Size of the image in pixels (width, height) | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | int | border_width | width of border around button in pixels | | (int or None, int or None) or (None, None) or int | size | (w, h) w=characters-wide, h=rows-high. If an int instead of a tuple is supplied, then height is auto-set to 1 | | (int or None, int or None) or (None, None) or int | s | Same as size parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, size will be used | @@ -400,10 +402,12 @@ when made visible. update(text = None, button_color = (None, None), disabled = None, + image_source = None, image_data = None, image_filename = None, visible = None, image_subsample = None, + image_zoom = None, disabled_button_color = (None, None), image_size = None) ``` @@ -415,11 +419,13 @@ Parameter Descriptions: | str | text | sets button text | | (str, str) or str or (int, int) or None | button_color | Color of button. default is from theme or the window. Easy to remember which is which if you say "ON" between colors. "red" on "green". Normally a tuple, but can be a simplified-button-color-string "foreground on background". Can be a single color if want to set only the background. | | (bool or str) | disabled | True/False to enable/disable at the GUI level. Use BUTTON_DISABLED_MEANS_IGNORE to ignore clicks (won't change colors) | +| (str or bytes) | image_source | Image to place on button. Use INSTEAD of the image_filename and image_data. Unifies these into 1 easier to use parm | | bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data | | str | image_filename | image filename if there is a button image. GIFs and PNGs only. | | (str, str) | disabled_button_color | colors to use when button is disabled (text, background). Use None for a color if don't want to change. Only ttk buttons support both text and background colors. tk buttons only support changing text color | | bool | visible | control visibility of element | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | (int, int) | image_size | Size of the image in pixels (width, height) | ### visible @@ -510,10 +516,12 @@ when made visible. Update(text = None, button_color = (None, None), disabled = None, + image_source = None, image_data = None, image_filename = None, visible = None, image_subsample = None, + image_zoom = None, disabled_button_color = (None, None), image_size = None) ``` @@ -525,11 +533,13 @@ Parameter Descriptions: | str | text | sets button text | | (str, str) or str or (int, int) or None | button_color | Color of button. default is from theme or the window. Easy to remember which is which if you say "ON" between colors. "red" on "green". Normally a tuple, but can be a simplified-button-color-string "foreground on background". Can be a single color if want to set only the background. | | (bool or str) | disabled | True/False to enable/disable at the GUI level. Use BUTTON_DISABLED_MEANS_IGNORE to ignore clicks (won't change colors) | +| (str or bytes) | image_source | Image to place on button. Use INSTEAD of the image_filename and image_data. Unifies these into 1 easier to use parm | | bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data | | str | image_filename | image filename if there is a button image. GIFs and PNGs only. | | (str, str) | disabled_button_color | colors to use when button is disabled (text, background). Use None for a color if don't want to change. Only ttk buttons support both text and background colors. tk buttons only support changing text color | | bool | visible | control visibility of element | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | (int, int) | image_size | Size of the image in pixels (width, height) | --------- @@ -548,6 +558,7 @@ ButtonMenu(button_text, image_data = None, image_size = (None, None), image_subsample = None, + image_zoom = None, border_width = None, size = (None, None), s = (None, None), @@ -582,6 +593,7 @@ Parameter Descriptions: | bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data | | (int, int) | image_size | Size of the image in pixels (width, height) | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | int | border_width | width of border around button in pixels | | (int, int) or (None, None) or int | size | (w, h) w=characters-wide, h=rows-high. If an int instead of a tuple is supplied, then height is auto-set to 1 | | (int, int) or (None, None) or int | s | Same as size parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, size will be used | @@ -838,6 +850,7 @@ update(menu_definition = None, image_source = None, image_size = (None, None), image_subsample = None, + image_zoom = None, button_text = None) ``` @@ -850,6 +863,7 @@ Parameter Descriptions: | (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string | | (int, int) | image_size | Size of the image in pixels (width, height) | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | str | button_text | Text to be shown on the button | ### visible @@ -932,6 +946,7 @@ Update(menu_definition = None, image_source = None, image_size = (None, None), image_subsample = None, + image_zoom = None, button_text = None) ``` @@ -944,6 +959,7 @@ Parameter Descriptions: | (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string | | (int, int) | image_size | Size of the image in pixels (width, height) | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | str | button_text | Text to be shown on the button | --------- @@ -4410,6 +4426,7 @@ Image(source = None, k = None, tooltip = None, subsample = None, + zoom = None, right_click_menu = None, expand_x = False, expand_y = False, @@ -4434,6 +4451,7 @@ Parameter Descriptions: | str or int or tuple or object | k | Same as the Key. You can use either k or key. Which ever is set will be used. | | str | tooltip | text, that will appear when mouse hovers over the element | | int | subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | zoom | amount to increase the size of the image. | | List[List[ List[str] or str ]] | right_click_menu | A list of lists of Menu items to show when this element is right clicked. See user docs for exact format. | | bool | expand_x | If True the element will automatically expand in the X direction to fill available space | | bool | expand_y | If True the element will automatically expand in the Y direction to fill available space | @@ -4676,6 +4694,7 @@ update(source = None, data = None, size = (None, None), subsample = None, + zoom = None, visible = None) ``` @@ -4688,6 +4707,7 @@ Parameter Descriptions: | str or tkPhotoImage | data | Base64 encoded string OR a tk.PhotoImage object | | Tuple[int,int] | size | (width, height) size of image in pixels | | int | subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | zoom | amount to increase the size of the image | | bool | visible | control visibility of element | ### update_animation @@ -4795,6 +4815,7 @@ Update(source = None, data = None, size = (None, None), subsample = None, + zoom = None, visible = None) ``` @@ -4807,6 +4828,7 @@ Parameter Descriptions: | str or tkPhotoImage | data | Base64 encoded string OR a tk.PhotoImage object | | Tuple[int,int] | size | (width, height) size of image in pixels | | int | subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | zoom | amount to increase the size of the image | | bool | visible | control visibility of element | ### UpdateAnimation @@ -10375,6 +10397,7 @@ Tab(title, element_justification = "left", image_source = None, image_subsample = None, + image_zoom = None, metadata = None) ``` @@ -10401,6 +10424,7 @@ Parameter Descriptions: | str | element_justification | All elements inside the Tab will have this justification 'left', 'right', 'center' are valid values | | str or bytes or None | image_source | A filename or a base64 bytes of an image to place on the Tab | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | Any | metadata | User metadata that can be set to ANYTHING | ### add_row @@ -19695,7 +19719,7 @@ Parameter Descriptions: | str | folder_to_open | The path to open in the explorer program | | (subprocess.Popen) or None | **RETURN** | Popen object -Returns the first filename found in a traceback that is not the nsame of this file (__file__) +Returns the first filename found in a traceback that is not the name of this file (__file__) Used internally with the debugger for example. ``` @@ -19706,7 +19730,7 @@ Parameter Descriptions: |Type|Name|Meaning| |--|--|--| -| str | **RETURN** | filename of the caller, asseumed to be the first non PySimpleGUI file +| str | **RETURN** | filename of the caller, assumed to be the first non PySimpleGUI file Get the text results of a previously executed execute call Returns a tuple of the strings (stdout, stderr) diff --git a/docs/index.md b/docs/index.md index ee85d93a..10995b3e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,9 +25,9 @@ apply coupon for discount: - D5570C66DBD8E42C7963 + 09B234B00A7E89CC8C1F - diff --git a/docs/readme.md b/docs/readme.md index 7a706176..a9acff6a 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -9,8 +9,8 @@ PySimpleGUI Udemy Course -
apply coupon for discount:
D5570C66DBD8E42C7963
- click here to visit course page +
apply coupon for discount:
09B234B00A7E89CC8C1F
+ click here to visit course page @@ -73,6 +73,8 @@ PySimpleGUI needs your support. If you find PySimpleGUI useful, please consider
+ + # What Is PySimpleGUI ❓ PySimpleGUI is a Python package that enables Python programmers of all levels to create GUIs. You specify your GUI window using a "layout" which contains widgets (they're called "Elements" in PySimpleGUI). Your layout is used to create a window using one of the 4 supported frameworks to display and interact with your window. Supported frameworks include tkinter, Qt, WxPython, or Remi. The term "wrapper" is sometimes used for these kinds of packages. diff --git a/readme.md b/readme.md index 7a706176..a9acff6a 100644 --- a/readme.md +++ b/readme.md @@ -9,8 +9,8 @@ PySimpleGUI Udemy Course -
apply coupon for discount:
D5570C66DBD8E42C7963
- click here to visit course page +
apply coupon for discount:
09B234B00A7E89CC8C1F
+ click here to visit course page @@ -73,6 +73,8 @@ PySimpleGUI needs your support. If you find PySimpleGUI useful, please consider
+ + # What Is PySimpleGUI ❓ PySimpleGUI is a Python package that enables Python programmers of all levels to create GUIs. You specify your GUI window using a "layout" which contains widgets (they're called "Elements" in PySimpleGUI). Your layout is used to create a window using one of the 4 supported frameworks to display and interact with your window. Supported frameworks include tkinter, Qt, WxPython, or Remi. The term "wrapper" is sometimes used for these kinds of packages. 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 351a5840..78f17c55 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: - D5570C66DBD8E42C7963 + 09B234B00A7E89CC8C1F - diff --git a/readme_creator/markdown input files/5_call_reference.md b/readme_creator/markdown input files/5_call_reference.md index e381ef9f..8a452369 100644 --- a/readme_creator/markdown input files/5_call_reference.md +++ b/readme_creator/markdown input files/5_call_reference.md @@ -25,9 +25,9 @@ apply coupon for discount: - D5570C66DBD8E42C7963 + 09B234B00A7E89CC8C1F - diff --git a/readme_creator/output/call reference.md b/readme_creator/output/call reference.md index b64e9525..5355d592 100644 --- a/readme_creator/output/call reference.md +++ b/readme_creator/output/call reference.md @@ -25,9 +25,9 @@ apply coupon for discount: - D5570C66DBD8E42C7963 + 09B234B00A7E89CC8C1F - @@ -71,6 +71,7 @@ Button(button_text = "", image_data = None, image_size = (None, None), image_subsample = None, + image_zoom = None, image_source = None, border_width = None, size = (None, None), @@ -114,6 +115,7 @@ Parameter Descriptions: | bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data | | (int, int) | image_size | Size of the image in pixels (width, height) | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | int | border_width | width of border around button in pixels | | (int or None, int or None) or (None, None) or int | size | (w, h) w=characters-wide, h=rows-high. If an int instead of a tuple is supplied, then height is auto-set to 1 | | (int or None, int or None) or (None, None) or int | s | Same as size parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, size will be used | @@ -400,10 +402,12 @@ when made visible. update(text = None, button_color = (None, None), disabled = None, + image_source = None, image_data = None, image_filename = None, visible = None, image_subsample = None, + image_zoom = None, disabled_button_color = (None, None), image_size = None) ``` @@ -415,11 +419,13 @@ Parameter Descriptions: | str | text | sets button text | | (str, str) or str or (int, int) or None | button_color | Color of button. default is from theme or the window. Easy to remember which is which if you say "ON" between colors. "red" on "green". Normally a tuple, but can be a simplified-button-color-string "foreground on background". Can be a single color if want to set only the background. | | (bool or str) | disabled | True/False to enable/disable at the GUI level. Use BUTTON_DISABLED_MEANS_IGNORE to ignore clicks (won't change colors) | +| (str or bytes) | image_source | Image to place on button. Use INSTEAD of the image_filename and image_data. Unifies these into 1 easier to use parm | | bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data | | str | image_filename | image filename if there is a button image. GIFs and PNGs only. | | (str, str) | disabled_button_color | colors to use when button is disabled (text, background). Use None for a color if don't want to change. Only ttk buttons support both text and background colors. tk buttons only support changing text color | | bool | visible | control visibility of element | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | (int, int) | image_size | Size of the image in pixels (width, height) | ### visible @@ -510,10 +516,12 @@ when made visible. Update(text = None, button_color = (None, None), disabled = None, + image_source = None, image_data = None, image_filename = None, visible = None, image_subsample = None, + image_zoom = None, disabled_button_color = (None, None), image_size = None) ``` @@ -525,11 +533,13 @@ Parameter Descriptions: | str | text | sets button text | | (str, str) or str or (int, int) or None | button_color | Color of button. default is from theme or the window. Easy to remember which is which if you say "ON" between colors. "red" on "green". Normally a tuple, but can be a simplified-button-color-string "foreground on background". Can be a single color if want to set only the background. | | (bool or str) | disabled | True/False to enable/disable at the GUI level. Use BUTTON_DISABLED_MEANS_IGNORE to ignore clicks (won't change colors) | +| (str or bytes) | image_source | Image to place on button. Use INSTEAD of the image_filename and image_data. Unifies these into 1 easier to use parm | | bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data | | str | image_filename | image filename if there is a button image. GIFs and PNGs only. | | (str, str) | disabled_button_color | colors to use when button is disabled (text, background). Use None for a color if don't want to change. Only ttk buttons support both text and background colors. tk buttons only support changing text color | | bool | visible | control visibility of element | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | (int, int) | image_size | Size of the image in pixels (width, height) | --------- @@ -548,6 +558,7 @@ ButtonMenu(button_text, image_data = None, image_size = (None, None), image_subsample = None, + image_zoom = None, border_width = None, size = (None, None), s = (None, None), @@ -582,6 +593,7 @@ Parameter Descriptions: | bytes or str | image_data | Raw or Base64 representation of the image to put on button. Choose either filename or data | | (int, int) | image_size | Size of the image in pixels (width, height) | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | int | border_width | width of border around button in pixels | | (int, int) or (None, None) or int | size | (w, h) w=characters-wide, h=rows-high. If an int instead of a tuple is supplied, then height is auto-set to 1 | | (int, int) or (None, None) or int | s | Same as size parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, size will be used | @@ -838,6 +850,7 @@ update(menu_definition = None, image_source = None, image_size = (None, None), image_subsample = None, + image_zoom = None, button_text = None) ``` @@ -850,6 +863,7 @@ Parameter Descriptions: | (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string | | (int, int) | image_size | Size of the image in pixels (width, height) | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | str | button_text | Text to be shown on the button | ### visible @@ -932,6 +946,7 @@ Update(menu_definition = None, image_source = None, image_size = (None, None), image_subsample = None, + image_zoom = None, button_text = None) ``` @@ -944,6 +959,7 @@ Parameter Descriptions: | (str or bytes) | image_source | new image if image is to be changed. Can be a filename or a base64 encoded byte-string | | (int, int) | image_size | Size of the image in pixels (width, height) | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | str | button_text | Text to be shown on the button | --------- @@ -4410,6 +4426,7 @@ Image(source = None, k = None, tooltip = None, subsample = None, + zoom = None, right_click_menu = None, expand_x = False, expand_y = False, @@ -4434,6 +4451,7 @@ Parameter Descriptions: | str or int or tuple or object | k | Same as the Key. You can use either k or key. Which ever is set will be used. | | str | tooltip | text, that will appear when mouse hovers over the element | | int | subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | zoom | amount to increase the size of the image. | | List[List[ List[str] or str ]] | right_click_menu | A list of lists of Menu items to show when this element is right clicked. See user docs for exact format. | | bool | expand_x | If True the element will automatically expand in the X direction to fill available space | | bool | expand_y | If True the element will automatically expand in the Y direction to fill available space | @@ -4676,6 +4694,7 @@ update(source = None, data = None, size = (None, None), subsample = None, + zoom = None, visible = None) ``` @@ -4688,6 +4707,7 @@ Parameter Descriptions: | str or tkPhotoImage | data | Base64 encoded string OR a tk.PhotoImage object | | Tuple[int,int] | size | (width, height) size of image in pixels | | int | subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | zoom | amount to increase the size of the image | | bool | visible | control visibility of element | ### update_animation @@ -4795,6 +4815,7 @@ Update(source = None, data = None, size = (None, None), subsample = None, + zoom = None, visible = None) ``` @@ -4807,6 +4828,7 @@ Parameter Descriptions: | str or tkPhotoImage | data | Base64 encoded string OR a tk.PhotoImage object | | Tuple[int,int] | size | (width, height) size of image in pixels | | int | subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | zoom | amount to increase the size of the image | | bool | visible | control visibility of element | ### UpdateAnimation @@ -10375,6 +10397,7 @@ Tab(title, element_justification = "left", image_source = None, image_subsample = None, + image_zoom = None, metadata = None) ``` @@ -10401,6 +10424,7 @@ Parameter Descriptions: | str | element_justification | All elements inside the Tab will have this justification 'left', 'right', 'center' are valid values | | str or bytes or None | image_source | A filename or a base64 bytes of an image to place on the Tab | | int | image_subsample | amount to reduce the size of the image. Divides the size by this number. 2=1/2, 3=1/3, 4=1/4, etc | +| int | image_zoom | amount to increase the size of the image. 2=twice size, 3=3 times, etc | | Any | metadata | User metadata that can be set to ANYTHING | ### add_row @@ -19695,7 +19719,7 @@ Parameter Descriptions: | str | folder_to_open | The path to open in the explorer program | | (subprocess.Popen) or None | **RETURN** | Popen object -Returns the first filename found in a traceback that is not the nsame of this file (__file__) +Returns the first filename found in a traceback that is not the name of this file (__file__) Used internally with the debugger for example. ``` @@ -19706,7 +19730,7 @@ Parameter Descriptions: |Type|Name|Meaning| |--|--|--| -| str | **RETURN** | filename of the caller, asseumed to be the first non PySimpleGUI file +| str | **RETURN** | filename of the caller, assumed to be the first non PySimpleGUI file Get the text results of a previously executed execute call Returns a tuple of the strings (stdout, stderr) diff --git a/readme_creator/output/index.md b/readme_creator/output/index.md index ee85d93a..10995b3e 100644 --- a/readme_creator/output/index.md +++ b/readme_creator/output/index.md @@ -25,9 +25,9 @@ apply coupon for discount: - D5570C66DBD8E42C7963 + 09B234B00A7E89CC8C1F -