Merge pull request #3240 from PySimpleGUI/Dev-latest

Release 4.28.0
This commit is contained in:
PySimpleGUI 2020-08-03 15:54:11 -04:00 committed by GitHub
commit 54abff96d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 1 deletions

View file

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

View file

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