Release 4.40.0
This commit is contained in:
parent
c9fb11362a
commit
33178fe29f
7 changed files with 401 additions and 17 deletions
|
@ -1567,6 +1567,52 @@ If `non_blocking` parameter is set, then the call will not blocking waiting for
|
|||
|
||||
### Non-Blocking Popups - popup_no_wait and the non_blocking parameter
|
||||
|
||||
Show Popup window and immediately return (does not block)
|
||||
|
||||
```
|
||||
popup_no_wait(args=*<1 or N object>,
|
||||
title = None,
|
||||
button_type = 0,
|
||||
button_color = None,
|
||||
background_color = None,
|
||||
text_color = None,
|
||||
auto_close = False,
|
||||
auto_close_duration = None,
|
||||
non_blocking = True,
|
||||
icon = None,
|
||||
line_width = None,
|
||||
font = None,
|
||||
no_titlebar = False,
|
||||
grab_anywhere = False,
|
||||
keep_on_top = False,
|
||||
location = (None, None),
|
||||
image = None,
|
||||
modal = False)
|
||||
```
|
||||
|
||||
Parameter Descriptions:
|
||||
|
||||
|Type|Name|Meaning|
|
||||
|--|--|--|
|
||||
| Any | *args | Variable number of items to display |
|
||||
| str | title | Title to display in the window. |
|
||||
| int | button_type | Determines which pre-defined buttons will be shown (Default value = POPUP_BUTTONS_OK). |
|
||||
| Tuple[str, str] or str | button_color | button color (foreground, background) |
|
||||
| str | background_color | color of background |
|
||||
| str | text_color | color of the text |
|
||||
| bool | auto_close | if True window will close itself |
|
||||
| int or float | auto_close_duration | Older versions only accept int. Time in seconds until window will close |
|
||||
| bool | non_blocking | if True the call will immediately return rather than waiting on user input |
|
||||
| bytes or str | icon | filename or base64 string to be used for the window's icon |
|
||||
| int | line_width | Width of lines in characters |
|
||||
| str or Tuple[str, int] | font | specifies the font family, size, etc |
|
||||
| bool | no_titlebar | If True no titlebar will be shown |
|
||||
| bool | grab_anywhere | If True: can grab anywhere to move the window (Default = False) |
|
||||
| Tuple[int, int] | location | Location of upper left corner of the window |
|
||||
| str or bytes | image | Image to include at the top of the popup window |
|
||||
| bool | modal | If True then makes the popup will behave like a Modal window... all other windows are non-operational until this one is closed. Default = False |
|
||||
| str or None | **RETURN** | Reason for popup closing
|
||||
|
||||
The `popup` call `popup_no_wait` or `popup_non_blocking` will create a popup window and then immediately return control back to you. You can turn other popup calls into non-blocking popups if they have a `non_blocking` parameter. Setting `non_blocking` to True will cause the function to return immediately rather than waiting for the window to be closed.
|
||||
|
||||
This function is very handy for when you're **debugging** and want to display something as output but don't want to change the programs's overall timing by blocking. Think of it like a `print` statement. There are no return values on one of these Popups.
|
||||
|
@ -8598,6 +8644,41 @@ GitHub Issues GUI
|
|||
* Added more symbols for buttons - double L/R & arrowheads,
|
||||
* Moved theme tests into a tab" in sg.main
|
||||
|
||||
## 4.40.0 PySimpleGUI 25-Apr-2021
|
||||
|
||||
The "A4 Release" (440 Hz)
|
||||
Buttons get a boost
|
||||
Fix for Graph Dragging caused by last release
|
||||
Gray Gray Gray should you wish to go colorless
|
||||
|
||||
* Right-click Menu constant - MENU_RIGHT_CLICK_EXIT - Has only "Exit"
|
||||
* Constant = ['', ['Exit']]
|
||||
* Checkbox.get() now returns a bool instead of int
|
||||
* Button colors
|
||||
* mouseover_colors - new parm to Button. Sets the color when mouse moves over the button
|
||||
* When a TK Button this is Only visible on Linux systems when mouse is over button
|
||||
* On Windows, these colors appear when the button is clicked
|
||||
* Default is to swap the button's normal colors (text = background, background = text)
|
||||
* Close Window Only button type changed to work on all windows, not just non-blocking ones
|
||||
* ColorChooserButton - target now matches other choosers (target=(ThisRow, -1))
|
||||
* TabGroup - new size parm that will set size in either or both directions
|
||||
* Fix for TCL error when scrolling a column
|
||||
* Themes
|
||||
* Fix for COLOR_SYSTEM_DEFAULT error when choosing "default1" Theme
|
||||
* New Theme - "Gray Gray Gray" - sets no colors. The window will likely be some shades of gray
|
||||
* Changed error messages to use "theme" instead of the old "change_look_and_feel"
|
||||
*
|
||||
* Debug window - problems was if set the erase_all parm and Debug window is then closed
|
||||
* timer_start, timer_stop - stop now returns the milliseconds elapsed instead of printing them
|
||||
* popup_menu - now uses the passed in title if provided
|
||||
* GitHub Issues GUI
|
||||
* Made necessary changes to be 3.4 compatible. You can post Issues directly from your Pi running 3.4
|
||||
* Changed layout so that the window is smaller
|
||||
* New Help window uses tabs to make smaller
|
||||
* Fix for extend_layout when adding to a scrollable column
|
||||
* Added back functions accidently lost during a PEP8 rework
|
||||
* added back popup_annoying, popup_no_border, popup_no_frame, popup_no_wait, popup_timed, sgprint, sgprint_close
|
||||
|
||||
## Upcoming
|
||||
|
||||
The future for PySimpleGUI looks bright!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue