Merge pull request #3637 from PySimpleGUI/Dev-latest

Release 4.32.0
This commit is contained in:
PySimpleGUI 2020-11-17 13:46:15 -05:00 committed by GitHub
commit cd93d3ff9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 39 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
version = __version__ = "4.31.0.6 Unreleased\nChange Menu & ButtonMenu color and font default, renamed & refactored from FlexForm to Window in ConvertFlexToTK, Button.update now checks for COLOR_SYSTEM_DEFAULT, fix for DisabledText missing for right click menus, made reads faster when timeout happens, refactored adding right click menu, right click menu color & font options added to Window, check for UserSettings already initialized, don't start autoclose timer if a window is being finalized" version = __version__ = "4.32.0 Released 17-Nov-2020"
__version__ = version.split()[0] # For PEP 396 and PEP 345 __version__ = version.split()[0] # For PEP 396 and PEP 345

View File

@ -9021,6 +9021,10 @@ Window(title,
right_click_menu=None, right_click_menu=None,
transparent_color=None, transparent_color=None,
debugger_enabled=True, debugger_enabled=True,
right_click_menu_background_color=None,
right_click_menu_text_color=None,
right_click_menu_disabled_text_color=None,
right_click_menu_font=None,
finalize=False, finalize=False,
element_justification="left", element_justification="left",
ttk_theme=None, ttk_theme=None,
@ -9065,6 +9069,10 @@ 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. | | 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. |
| str | transparent_color | Any portion of the window that has this color will be completely transparent. You can even click through these spots to the window under this window. | | str | transparent_color | Any portion of the window that has this color will be completely transparent. You can even click through these spots to the window under this window. |
| bool | debugger_enabled | If True then the internal debugger will be enabled | | bool | debugger_enabled | If True then the internal debugger will be enabled |
| str | right_click_menu_background_color | Background color for right click menus |
| str | right_click_menu_text_color | Text color for right click menus |
| str | right_click_menu_disabled_text_color | Text color for disabled right click menu items |
| Union[str, Tuple[str, int]] | right_click_menu_font | Font for right click menus |
| bool | finalize | If True then the Finalize method will be called. Use this rather than chaining .Finalize for cleaner code | | bool | finalize | If True then the Finalize method will be called. Use this rather than chaining .Finalize for cleaner code |
| str | element_justification | All elements in the Window itself will have this justification 'left', 'right', 'center' are valid values | | str | element_justification | All elements in the Window itself will have this justification 'left', 'right', 'center' are valid values |
| str | ttk_theme | Set the tkinter ttk "theme" of the window. Default = DEFAULT_TTK_THEME. Sets all ttk widgets to this theme as their default | | str | ttk_theme | Set the tkinter ttk "theme" of the window. Default = DEFAULT_TTK_THEME. Sets all ttk widgets to this theme as their default |