From 523af47883a498aee53c63a0b39cc749559c600a Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 3 Aug 2020 15:53:50 -0400 Subject: [PATCH] Release 4.28.0 --- PySimpleGUI.py | 2 +- docs/call reference.md | 13 +++++++++++++ docs/index.md | 15 +++++++++++++++ readme.md | 15 +++++++++++++++ 4 files changed, 44 insertions(+), 1 deletion(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index d916ca59..a335375b 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = __version__ = "4.27.4.5 Unreleased\nAdded setting of combobox button color to be theme's button color, spin arrow color set to background color of spin, fix for error popup when bad key (thanks Ruud!), fixed background color for combo when readonly, added border_width to Canvas & Graph elems, added pin function to pin an element's location in a layout" +version = __version__ = "4.28.0 Released 3-Aug-2020" port = 'PySimpleGUI' diff --git a/docs/call reference.md b/docs/call reference.md index 8c44a2d9..ab322334 100644 --- a/docs/call reference.md +++ b/docs/call reference.md @@ -631,6 +631,7 @@ Canvas(canvas=None, tooltip=None, right_click_menu=None, visible=True, + border_width=0, metadata=None) ``` @@ -647,6 +648,7 @@ Parameter Descriptions: | str | tooltip | text, that will appear when mouse hovers over the element | | List[List[Union[List[str],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 | visible | set visibility state of the element | +| int | border_width | width of border around element in pixels. Not normally used with Canvas element | | Any | metadata | User metadata that can be set to ANYTHING | ### SetFocus @@ -2007,6 +2009,7 @@ Graph(canvas_size, right_click_menu=None, visible=True, float_values=False, + border_width=0, metadata=None) ``` @@ -2028,6 +2031,7 @@ Parameter Descriptions: | List[List[Union[List[str],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 | visible | set visibility state of the element (Default = True) | | bool | float_values | If True x,y coordinates are returned as floats, not ints | +| int | border_width | width of border around element in pixels. Not normally used for Graph Elements | | Any | metadata | User metadata that can be set to ANYTHING | ### BringFigureToFront @@ -13961,6 +13965,15 @@ Parameter Descriptions: | (Dict[Any:Any]) | values_dict | A dictionary with element keys as key and value is values parm for Update call | | None | **RETURN** | None +## Element Visibility + +Pin's an element provided into a layout so that when it's made invisible and visible again, it will + be in the correct place. Otherwise it will be placed at the end of its containing window/column. + +``` +pin(elem) +``` + ## Configuration / Settings / Extensions Returns the dictionary of the global variables diff --git a/docs/index.md b/docs/index.md index c6433e24..35b97c98 100644 --- a/docs/index.md +++ b/docs/index.md @@ -7675,6 +7675,21 @@ Theme searching * Early experimental "Move all windows in sync" when using grab_anywhere (coming soon) * Fix for 3.4 (can't use f-strings) +## 4.28.0 PySimpleGUI 3-Aug-2020 + +Element pinning for invisibility! + +* Better visible/invisible handling + * pin - new function to place an element in a layout that will hold its position + * border_width added to Canvas and Graph (so that they will default to 0) +* Combobox + * button color will match theme's button color + * background color set correctly when readonly indicated +* Spin element + * spin button color set to background color of spinner + * spin arrow color automatically set to text color +* Bad element key popup - fix for displaying correct line info in some situations + ### Upcoming There will always be overlapping work as the ports will never actually be "complete" as there's always something new that can be built. However there's a definition for the base functionality for PySimpleGUI. This is what is being strived for with the current ports that are underway. diff --git a/readme.md b/readme.md index c6433e24..35b97c98 100644 --- a/readme.md +++ b/readme.md @@ -7675,6 +7675,21 @@ Theme searching * Early experimental "Move all windows in sync" when using grab_anywhere (coming soon) * Fix for 3.4 (can't use f-strings) +## 4.28.0 PySimpleGUI 3-Aug-2020 + +Element pinning for invisibility! + +* Better visible/invisible handling + * pin - new function to place an element in a layout that will hold its position + * border_width added to Canvas and Graph (so that they will default to 0) +* Combobox + * button color will match theme's button color + * background color set correctly when readonly indicated +* Spin element + * spin button color set to background color of spinner + * spin arrow color automatically set to text color +* Bad element key popup - fix for displaying correct line info in some situations + ### Upcoming There will always be overlapping work as the ports will never actually be "complete" as there's always something new that can be built. However there's a definition for the base functionality for PySimpleGUI. This is what is being strived for with the current ports that are underway.