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

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

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.

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.