From 2eed0afaeb95d9dbbfbb7be0bb8ed61e97db4aae Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 13 Mar 2023 06:16:07 -0400 Subject: [PATCH 1/2] New SDK call ref with net set_ibeam_color method added. New Udemy Coupon added to docs --- docs/call reference.md | 156 ++++++++++++------ docs/cookbook.md | 4 +- docs/index.md | 4 +- docs/readme.md | 4 +- .../markdown input files/1_HEADER_top_part.md | 4 +- .../markdown input files/5_call_reference.md | 13 +- readme_creator/output/call reference.md | 156 ++++++++++++------ readme_creator/output/index.md | 4 +- 8 files changed, 241 insertions(+), 104 deletions(-) diff --git a/docs/call reference.md b/docs/call reference.md index 98c2f2a2..dffd8746 100644 --- a/docs/call reference.md +++ b/docs/call reference.md @@ -25,9 +25,9 @@ apply coupon for discount: - 07860559FF2298EF51E7 + A2E4F6B1B75EC3D90133input. - @@ -1305,6 +1305,7 @@ Checkbox(text, background_color = None, text_color = None, checkbox_color = None, + highlight_thickness = 1, change_submits = False, enable_events = False, disabled = False, @@ -1324,28 +1325,29 @@ Parameter Descriptions: |Type|Name|Meaning| |--|--|--| -| str | text | Text to display next to checkbox | -| bool | default | Set to True if you want this checkbox initially checked | -| (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 | -| bool | auto_size_text | if True will size the element to match the length of the text | -| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | -| str | background_color | color of background | -| str | text_color | color of the text | -| str | checkbox_color | color of background of the box that has the check mark in it. The checkmark is the same color as the text | -| bool | change_submits | DO NOT USE. Only listed for backwards compat - Use enable_events instead | -| bool | enable_events | Turns on the element specific events. Checkbox events happen when an item changes | -| bool | disabled | set disable state | -| str or int or tuple or object | key | Used with window.find_element and with return values to uniquely identify this element | -| 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. | -| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | pad | Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int) | -| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | p | Same as pad parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, pad will be used | -| str | tooltip | text, that will appear when mouse hovers over the element | -| 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 | -| bool | visible | set visibility state of the element | -| Any | metadata | User metadata that can be set to ANYTHING | +| str | text | Text to display next to checkbox | +| bool | default | Set to True if you want this checkbox initially checked | +| (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 | +| bool | auto_size_text | if True will size the element to match the length of the text | +| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | +| str | background_color | color of background | +| str | text_color | color of the text | +| str | checkbox_color | color of background of the box that has the check mark in it. The checkmark is the same color as the text | +| int | highlight_thickness | thickness of border around checkbox when gets focus | +| bool | change_submits | DO NOT USE. Only listed for backwards compat - Use enable_events instead | +| bool | enable_events | Turns on the element specific events. Checkbox events happen when an item changes | +| bool | disabled | set disable state | +| str or int or tuple or object | key | Used with window.find_element and with return values to uniquely identify this element | +| 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. | +| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | pad | Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int) | +| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | p | Same as pad parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, pad will be used | +| str | tooltip | text, that will appear when mouse hovers over the element | +| 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 | +| bool | visible | set visibility state of the element | +| Any | metadata | User metadata that can be set to ANYTHING | ### bind @@ -2481,22 +2483,26 @@ update(value = None, font = None, visible = None, size = (None, None), - select = None) + select = None, + text_color = None, + background_color = None) ``` Parameter Descriptions: |Type|Name|Meaning| |--|--|--| -| Any | value | change which value is current selected based on new list of previous list of choices | -| List[Any] | values | change list of choices | -| int | set_to_index | change selection to a particular choice starting with index = 0 | -| bool | disabled | disable or enable state of the element | -| bool | readonly | if True make element readonly (user cannot change any choices). Enables the element if either choice are made. | -| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | -| bool | visible | control visibility of element | -| (int, int) | size | width, height. Width = characters-wide, height = NOTE it's the number of entries to show in the list | -| bool | select | if True, then the text will be selected, if False then selection will be cleared | +| Any | value | change which value is current selected based on new list of previous list of choices | +| List[Any] | values | change list of choices | +| int | set_to_index | change selection to a particular choice starting with index = 0 | +| bool | disabled | disable or enable state of the element | +| bool | readonly | if True make element readonly (user cannot change any choices). Enables the element if either choice are made. | +| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | +| bool | visible | control visibility of element | +| (int, int) | size | width, height. Width = characters-wide, height = NOTE it's the number of entries to show in the list | +| bool | select | if True, then the text will be selected, if False then selection will be cleared | +| str | background_color | color of background | +| str | text_color | color of the text | ### visible @@ -2586,22 +2592,26 @@ Update(value = None, font = None, visible = None, size = (None, None), - select = None) + select = None, + text_color = None, + background_color = None) ``` Parameter Descriptions: |Type|Name|Meaning| |--|--|--| -| Any | value | change which value is current selected based on new list of previous list of choices | -| List[Any] | values | change list of choices | -| int | set_to_index | change selection to a particular choice starting with index = 0 | -| bool | disabled | disable or enable state of the element | -| bool | readonly | if True make element readonly (user cannot change any choices). Enables the element if either choice are made. | -| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | -| bool | visible | control visibility of element | -| (int, int) | size | width, height. Width = characters-wide, height = NOTE it's the number of entries to show in the list | -| bool | select | if True, then the text will be selected, if False then selection will be cleared | +| Any | value | change which value is current selected based on new list of previous list of choices | +| List[Any] | values | change list of choices | +| int | set_to_index | change selection to a particular choice starting with index = 0 | +| bool | disabled | disable or enable state of the element | +| bool | readonly | if True make element readonly (user cannot change any choices). Enables the element if either choice are made. | +| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | +| bool | visible | control visibility of element | +| (int, int) | size | width, height. Width = characters-wide, height = NOTE it's the number of entries to show in the list | +| bool | select | if True, then the text will be selected, if False then selection will be cleared | +| str | background_color | color of background | +| str | text_color | color of the text | --------- @@ -5100,6 +5110,22 @@ Parameter Descriptions: |--|--|--| | bool | force | if True will call focus_force otherwise calls focus_set | +### set_ibeam_color + +Sets the color of the I-Beam that is used to "insert" characters. This is oftens called a "Cursor" by +many users. To keep from being confused with tkinter's definition of cursor (the mouse pointer), the term +ibeam is used in this case. + +``` +set_ibeam_color(ibeam_color = None) +``` + +Parameter Descriptions: + +|Type|Name|Meaning| +|--|--|--| +| str | ibeam_color | color to set the "I-Beam" used to indicate where characters will be inserted | + ### set_size Changes the size of an element to a specific size. @@ -6600,6 +6626,22 @@ Parameter Descriptions: |--|--|--| | bool | force | if True will call focus_force otherwise calls focus_set | +### set_ibeam_color + +Sets the color of the I-Beam that is used to "insert" characters. This is oftens called a "Cursor" by +many users. To keep from being confused with tkinter's definition of cursor (the mouse pointer), the term +ibeam is used in this case. + +``` +set_ibeam_color(ibeam_color = None) +``` + +Parameter Descriptions: + +|Type|Name|Meaning| +|--|--|--| +| str | ibeam_color | color to set the "I-Beam" used to indicate where characters will be inserted | + ### set_size Changes the size of an element to a specific size. @@ -9821,6 +9863,22 @@ Parameter Descriptions: |--|--|--| | bool | force | if True will call focus_force otherwise calls focus_set | +### set_ibeam_color + +Sets the color of the I-Beam that is used to "insert" characters. This is oftens called a "Cursor" by +many users. To keep from being confused with tkinter's definition of cursor (the mouse pointer), the term +ibeam is used in this case. + +``` +set_ibeam_color(ibeam_color = None) +``` + +Parameter Descriptions: + +|Type|Name|Meaning| +|--|--|--| +| str | ibeam_color | color to set the "I-Beam" used to indicate where characters will be inserted | + ### set_size Changes the size of an element to a specific size. @@ -13054,6 +13112,7 @@ Window(title, sbar_arrow_width = None, sbar_frame_color = None, sbar_relief = None, + watermark = None, metadata = None) ``` @@ -13121,6 +13180,7 @@ Parameter Descriptions: | int | sbar_arrow_width | Scrollbar width of the arrow on the scrollbar. It will potentially impact the overall width of the scrollbar | | str | sbar_frame_color | Scrollbar Color of frame around scrollbar (available only on some ttk themes) | | str | sbar_relief | Scrollbar relief that will be used for the "thumb" of the scrollbar (the thing you grab that slides). Should be a constant that is defined at starting with "RELIEF_" - RELIEF_RAISED, RELIEF_SUNKEN, RELIEF_FLAT, RELIEF_RIDGE, RELIEF_GROOVE, RELIEF_SOLID | +| bool | watermark | If True, then turns on watermarking temporarily for ALL windows created from this point forward. See global settings doc for more info | | Any | metadata | User metadata that can be set to ANYTHING | ### add_row @@ -20031,7 +20091,8 @@ set_options(icon = None, sbar_relief = None, alpha_channel = None, hide_window_when_creating = None, - use_button_shortcuts = None) + use_button_shortcuts = None, + watermark_text = None) ``` Parameter Descriptions: @@ -20104,6 +20165,7 @@ Parameter Descriptions: | float | alpha_channel | Default alpha channel to be used on all windows | | bool | hide_window_when_creating | If True then alpha will be set to 0 while a window is made and moved to location indicated | | bool | use_button_shortcuts | If True then Shortcut Char will be used with Buttons | +| str | watermark_text | Set the text that will be used if a window is watermarked | | None | **RETURN** | None ### Non PEP8 versions @@ -20187,7 +20249,8 @@ SetOptions(icon = None, sbar_relief = None, alpha_channel = None, hide_window_when_creating = None, - use_button_shortcuts = None) + use_button_shortcuts = None, + watermark_text = None) ``` Parameter Descriptions: @@ -20260,6 +20323,7 @@ Parameter Descriptions: | float | alpha_channel | Default alpha channel to be used on all windows | | bool | hide_window_when_creating | If True then alpha will be set to 0 while a window is made and moved to location indicated | | bool | use_button_shortcuts | If True then Shortcut Char will be used with Buttons | +| str | watermark_text | Set the text that will be used if a window is watermarked | | None | **RETURN** | None ## Old Themes (Look and Feel) - Replaced by theme() diff --git a/docs/cookbook.md b/docs/cookbook.md index 53b73cc3..8cae312c 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -25,9 +25,9 @@ apply coupon for discount: - 07860559FF2298EF51E7 + A2E4F6B1B75EC3D90133 - diff --git a/docs/index.md b/docs/index.md index 4121f51d..1dfb749a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -25,9 +25,9 @@ apply coupon for discount: - 07860559FF2298EF51E7 + A2E4F6B1B75EC3D90133 - diff --git a/docs/readme.md b/docs/readme.md index 740737f9..181372e7 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -9,8 +9,8 @@ PySimpleGUI Udemy Course -
apply coupon for discount:
07860559FF2298EF51E7
- click here to visit course page +
apply coupon for discount:
A2E4F6B1B75EC3D90133
+ 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 c7ba309d..e8d716ae 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: - 07860559FF2298EF51E7 + A2E4F6B1B75EC3D90133 - diff --git a/readme_creator/markdown input files/5_call_reference.md b/readme_creator/markdown input files/5_call_reference.md index 04b093c4..2a13ca90 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: - 07860559FF2298EF51E7 + A2E4F6B1B75EC3D90133input. - @@ -1111,6 +1111,9 @@ The following methods are here for backwards compatibility reference. You will ### set_focus +### set_ibeam_color + + ### set_size @@ -1421,6 +1424,9 @@ See the Column element to get a list of method calls available. The function re ### set_focus +### set_ibeam_color + + ### set_size @@ -2162,6 +2168,9 @@ The following methods are here for backwards compatibility reference. You will ### set_focus +### set_ibeam_color + + ### set_size diff --git a/readme_creator/output/call reference.md b/readme_creator/output/call reference.md index 98c2f2a2..dffd8746 100644 --- a/readme_creator/output/call reference.md +++ b/readme_creator/output/call reference.md @@ -25,9 +25,9 @@ apply coupon for discount: - 07860559FF2298EF51E7 + A2E4F6B1B75EC3D90133input. - @@ -1305,6 +1305,7 @@ Checkbox(text, background_color = None, text_color = None, checkbox_color = None, + highlight_thickness = 1, change_submits = False, enable_events = False, disabled = False, @@ -1324,28 +1325,29 @@ Parameter Descriptions: |Type|Name|Meaning| |--|--|--| -| str | text | Text to display next to checkbox | -| bool | default | Set to True if you want this checkbox initially checked | -| (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 | -| bool | auto_size_text | if True will size the element to match the length of the text | -| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | -| str | background_color | color of background | -| str | text_color | color of the text | -| str | checkbox_color | color of background of the box that has the check mark in it. The checkmark is the same color as the text | -| bool | change_submits | DO NOT USE. Only listed for backwards compat - Use enable_events instead | -| bool | enable_events | Turns on the element specific events. Checkbox events happen when an item changes | -| bool | disabled | set disable state | -| str or int or tuple or object | key | Used with window.find_element and with return values to uniquely identify this element | -| 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. | -| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | pad | Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int) | -| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | p | Same as pad parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, pad will be used | -| str | tooltip | text, that will appear when mouse hovers over the element | -| 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 | -| bool | visible | set visibility state of the element | -| Any | metadata | User metadata that can be set to ANYTHING | +| str | text | Text to display next to checkbox | +| bool | default | Set to True if you want this checkbox initially checked | +| (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 | +| bool | auto_size_text | if True will size the element to match the length of the text | +| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | +| str | background_color | color of background | +| str | text_color | color of the text | +| str | checkbox_color | color of background of the box that has the check mark in it. The checkmark is the same color as the text | +| int | highlight_thickness | thickness of border around checkbox when gets focus | +| bool | change_submits | DO NOT USE. Only listed for backwards compat - Use enable_events instead | +| bool | enable_events | Turns on the element specific events. Checkbox events happen when an item changes | +| bool | disabled | set disable state | +| str or int or tuple or object | key | Used with window.find_element and with return values to uniquely identify this element | +| 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. | +| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | pad | Amount of padding to put around element in pixels (left/right, top/bottom) or ((left, right), (top, bottom)) or an int. If an int, then it's converted into a tuple (int, int) | +| (int, int or (int, int),(int,int) or int,(int,int)) or ((int, int),int) or int | p | Same as pad parameter. It's an alias. If EITHER of them are set, then the one that's set will be used. If BOTH are set, pad will be used | +| str | tooltip | text, that will appear when mouse hovers over the element | +| 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 | +| bool | visible | set visibility state of the element | +| Any | metadata | User metadata that can be set to ANYTHING | ### bind @@ -2481,22 +2483,26 @@ update(value = None, font = None, visible = None, size = (None, None), - select = None) + select = None, + text_color = None, + background_color = None) ``` Parameter Descriptions: |Type|Name|Meaning| |--|--|--| -| Any | value | change which value is current selected based on new list of previous list of choices | -| List[Any] | values | change list of choices | -| int | set_to_index | change selection to a particular choice starting with index = 0 | -| bool | disabled | disable or enable state of the element | -| bool | readonly | if True make element readonly (user cannot change any choices). Enables the element if either choice are made. | -| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | -| bool | visible | control visibility of element | -| (int, int) | size | width, height. Width = characters-wide, height = NOTE it's the number of entries to show in the list | -| bool | select | if True, then the text will be selected, if False then selection will be cleared | +| Any | value | change which value is current selected based on new list of previous list of choices | +| List[Any] | values | change list of choices | +| int | set_to_index | change selection to a particular choice starting with index = 0 | +| bool | disabled | disable or enable state of the element | +| bool | readonly | if True make element readonly (user cannot change any choices). Enables the element if either choice are made. | +| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | +| bool | visible | control visibility of element | +| (int, int) | size | width, height. Width = characters-wide, height = NOTE it's the number of entries to show in the list | +| bool | select | if True, then the text will be selected, if False then selection will be cleared | +| str | background_color | color of background | +| str | text_color | color of the text | ### visible @@ -2586,22 +2592,26 @@ Update(value = None, font = None, visible = None, size = (None, None), - select = None) + select = None, + text_color = None, + background_color = None) ``` Parameter Descriptions: |Type|Name|Meaning| |--|--|--| -| Any | value | change which value is current selected based on new list of previous list of choices | -| List[Any] | values | change list of choices | -| int | set_to_index | change selection to a particular choice starting with index = 0 | -| bool | disabled | disable or enable state of the element | -| bool | readonly | if True make element readonly (user cannot change any choices). Enables the element if either choice are made. | -| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | -| bool | visible | control visibility of element | -| (int, int) | size | width, height. Width = characters-wide, height = NOTE it's the number of entries to show in the list | -| bool | select | if True, then the text will be selected, if False then selection will be cleared | +| Any | value | change which value is current selected based on new list of previous list of choices | +| List[Any] | values | change list of choices | +| int | set_to_index | change selection to a particular choice starting with index = 0 | +| bool | disabled | disable or enable state of the element | +| bool | readonly | if True make element readonly (user cannot change any choices). Enables the element if either choice are made. | +| (str or (str, int[, str]) or None) | font | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike | +| bool | visible | control visibility of element | +| (int, int) | size | width, height. Width = characters-wide, height = NOTE it's the number of entries to show in the list | +| bool | select | if True, then the text will be selected, if False then selection will be cleared | +| str | background_color | color of background | +| str | text_color | color of the text | --------- @@ -5100,6 +5110,22 @@ Parameter Descriptions: |--|--|--| | bool | force | if True will call focus_force otherwise calls focus_set | +### set_ibeam_color + +Sets the color of the I-Beam that is used to "insert" characters. This is oftens called a "Cursor" by +many users. To keep from being confused with tkinter's definition of cursor (the mouse pointer), the term +ibeam is used in this case. + +``` +set_ibeam_color(ibeam_color = None) +``` + +Parameter Descriptions: + +|Type|Name|Meaning| +|--|--|--| +| str | ibeam_color | color to set the "I-Beam" used to indicate where characters will be inserted | + ### set_size Changes the size of an element to a specific size. @@ -6600,6 +6626,22 @@ Parameter Descriptions: |--|--|--| | bool | force | if True will call focus_force otherwise calls focus_set | +### set_ibeam_color + +Sets the color of the I-Beam that is used to "insert" characters. This is oftens called a "Cursor" by +many users. To keep from being confused with tkinter's definition of cursor (the mouse pointer), the term +ibeam is used in this case. + +``` +set_ibeam_color(ibeam_color = None) +``` + +Parameter Descriptions: + +|Type|Name|Meaning| +|--|--|--| +| str | ibeam_color | color to set the "I-Beam" used to indicate where characters will be inserted | + ### set_size Changes the size of an element to a specific size. @@ -9821,6 +9863,22 @@ Parameter Descriptions: |--|--|--| | bool | force | if True will call focus_force otherwise calls focus_set | +### set_ibeam_color + +Sets the color of the I-Beam that is used to "insert" characters. This is oftens called a "Cursor" by +many users. To keep from being confused with tkinter's definition of cursor (the mouse pointer), the term +ibeam is used in this case. + +``` +set_ibeam_color(ibeam_color = None) +``` + +Parameter Descriptions: + +|Type|Name|Meaning| +|--|--|--| +| str | ibeam_color | color to set the "I-Beam" used to indicate where characters will be inserted | + ### set_size Changes the size of an element to a specific size. @@ -13054,6 +13112,7 @@ Window(title, sbar_arrow_width = None, sbar_frame_color = None, sbar_relief = None, + watermark = None, metadata = None) ``` @@ -13121,6 +13180,7 @@ Parameter Descriptions: | int | sbar_arrow_width | Scrollbar width of the arrow on the scrollbar. It will potentially impact the overall width of the scrollbar | | str | sbar_frame_color | Scrollbar Color of frame around scrollbar (available only on some ttk themes) | | str | sbar_relief | Scrollbar relief that will be used for the "thumb" of the scrollbar (the thing you grab that slides). Should be a constant that is defined at starting with "RELIEF_" - RELIEF_RAISED, RELIEF_SUNKEN, RELIEF_FLAT, RELIEF_RIDGE, RELIEF_GROOVE, RELIEF_SOLID | +| bool | watermark | If True, then turns on watermarking temporarily for ALL windows created from this point forward. See global settings doc for more info | | Any | metadata | User metadata that can be set to ANYTHING | ### add_row @@ -20031,7 +20091,8 @@ set_options(icon = None, sbar_relief = None, alpha_channel = None, hide_window_when_creating = None, - use_button_shortcuts = None) + use_button_shortcuts = None, + watermark_text = None) ``` Parameter Descriptions: @@ -20104,6 +20165,7 @@ Parameter Descriptions: | float | alpha_channel | Default alpha channel to be used on all windows | | bool | hide_window_when_creating | If True then alpha will be set to 0 while a window is made and moved to location indicated | | bool | use_button_shortcuts | If True then Shortcut Char will be used with Buttons | +| str | watermark_text | Set the text that will be used if a window is watermarked | | None | **RETURN** | None ### Non PEP8 versions @@ -20187,7 +20249,8 @@ SetOptions(icon = None, sbar_relief = None, alpha_channel = None, hide_window_when_creating = None, - use_button_shortcuts = None) + use_button_shortcuts = None, + watermark_text = None) ``` Parameter Descriptions: @@ -20260,6 +20323,7 @@ Parameter Descriptions: | float | alpha_channel | Default alpha channel to be used on all windows | | bool | hide_window_when_creating | If True then alpha will be set to 0 while a window is made and moved to location indicated | | bool | use_button_shortcuts | If True then Shortcut Char will be used with Buttons | +| str | watermark_text | Set the text that will be used if a window is watermarked | | None | **RETURN** | None ## Old Themes (Look and Feel) - Replaced by theme() diff --git a/readme_creator/output/index.md b/readme_creator/output/index.md index 4121f51d..1dfb749a 100644 --- a/readme_creator/output/index.md +++ b/readme_creator/output/index.md @@ -25,9 +25,9 @@ apply coupon for discount: - 07860559FF2298EF51E7 + A2E4F6B1B75EC3D90133 - From d8d5227240098726a8dff88bdb42c95e9b5b44c0 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 13 Mar 2023 06:17:36 -0400 Subject: [PATCH 2/2] New Udemy Coupon added --- PySimpleGUI.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index a943780e..635a3527 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.61.0.165 Unreleased" +version = __version__ = "4.61.0.166 Unreleased" _change_log = """ Changelog since 4.60.0 released to PyPI on 8-May-2022 @@ -398,6 +398,8 @@ _change_log = """ 4.61.0.165 Multiline & Spin - Applied same fix for input "cursor" (I-Beam) color that was added to the Input element. 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 + 4.61.0.166 + New Udemy coupon """ __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -26376,7 +26378,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=07860559FF2298EF51E7') + webbrowser.open_new_tab(r'https://www.udemy.com/course/pysimplegui/?couponCode=A2E4F6B1B75EC3D90133') elif event.startswith('-SPONSOR-'): if webbrowser_available: webbrowser.open_new_tab(r'https://www.paypal.me/pythongui') @@ -26384,7 +26386,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!", '07860559FF2298EF51E7', + popup_scrolled("Oh look! It's a Udemy discount coupon!", 'A2E4F6B1B75EC3D90133', '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': @@ -26554,4 +26556,4 @@ if __name__ == '__main__': exit(0) main() exit(0) -#491b45b926a0f4407364c8e3fe2d56e3c83693fbdcfea2f3ebe6a10bc6cf66ec10d1ee9f0754a70ea812aed411be7b8dde143fc345648c6f24ebf88205405d66dbdbb646ee77d0a3a241f13853623acead20c030948a771c86676303f5823fdf0e59c5d20d622c589cd3ec5da0a4eb3a8b1d84f964b0e67036f534b4499f7126cf8c9b39ad46fce9ee986fadb2cf89007b79b9f8ccc897a627653414ffda66f4dc140fa798559104d01f05584d7df51bc9b5b32a5c885efd6d19f9d77278e908d36cdffe0d7e3db0bd45722913b28a61c6e3cf9826bbaf0b60fd15b98296529727f67f6bcd4cfa21aff266072bb66a778732a9263f1a81251721755b28a6383b8763b31545db380bfbf663756a9bd4ba78ae2df1c3085eae809a2adc9ee04987e3d564b06558f52645259250506b24d32109a62e33d3794d343634720d2712618d670b32d7a60b2016791d050b772df9f2a80ef7e5c2c182f06e57a207e16ccde97cc248a071f873d563caea2ff7a36e15dc5f0c8495c6ec85c37895856f3bd0138b457d62bfc83e34e1934cee2308de94fcd185c85e9611d5eac8534927accca9ac53e0aa9cea56c6b9e6f1b06eb68c8d4ca3253314332f593c6473d73017a34608393853dc5db923a8bf1a96ddd9af17127952770bb89f2e753579c0e4ace28aea294d157417f1db9b0160e3cd1bc3c4d801adca5f1a0a9b34f25f0b3ca595 \ No newline at end of file +#8191dd5d8352d3c13f89bde32cdd01d664da2f4cabeff579ec281e413131545b6aafe489020f8f73c96477dbdf9e86e0013c01759cae8c5837d9d7ea44c7fc75f9af3fb5bce6270b0254f6f6f2d966abc5257991792b3d83880d7690a85e8f4b59e4051b0ff2f7ac1a5fa27d5630c2365d70398b22cda91c1a988c4f19379c4575afb6f6c86e873e0bcda2ed4fc65879a8c4c7a297437742b1ac070de6d04019ffc5e350d6030ce97965d0414ef48ea670ba21bb359319f1c8be7e6da2ff46c727ea82f54eb30d3a74728b5aa20e1412b6812750cfb8cb6122b3e720f0a2c0106d7ddb0eba9313ed763aa3f404221e0d4ffe9bb324a56ebb410e5cd6f45f6b985db5c39369d1fe201fc2ee7c9e8017e8eb7a9e08edafa15ad8a89f6214b75b8e183e2dde4c67350975999d7f74572f0f17d422a9ca430c928f80e2ffee4dd376ce916999b7a263b39783ddf54242b1341e70240c6875832525d87100c9a733d09969465e38226d80ead49508692eb9851eaa4fba26ca5069cb2c6ee88647c79683860d9b12fa598a1d452015d80295a1b59236c38f8fb42edf1aa897db653f8c20ce79836641cc64c1e5975b8400edc98854ab5c26de57241ce8b89979173b84f9cf3e5dd455a63721545001b06af63a8b11ed7889a4e53af7a1527bbd3e14ae6e6a16eb569c79d7213d52e7f276f1a59423fb3a519adc122b73128196aec80a \ No newline at end of file