Skip to content

Commit 436cb39

Browse files
committed
Release 4.45.0
1 parent ab93440 commit 436cb39

File tree

7 files changed

+177
-89
lines changed

7 files changed

+177
-89
lines changed

Diff for: PySimpleGUI.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python3
22

3-
version = __version__ = "4.44.0.10 Unreleased\nWindow.current_location docstring update to indicate value my be off due to titlebar, Menu element fixed problem of updates modifying the original menu spec, better string length handling in error popups, New popup function - popup_error_with_traceback allows you to show error info with a button to take the user to the line with the problem, replaced error popups with traceback popups when button colors problems are detected, fix for Menu.update - wasn't setting the colors and font correctly, title parm in the docstring, menu tearoff location fix after update with new menu def, Output element docstring update indicating Multiline is the superior choice, set no titlebar settings twice now due to a Raspberry Pi problem, fix for Combo and Input elements readonly state not being recalled when updating disabled. Moved *args to end in one_line_progress_meter"
3+
version = __version__ = "4.45.0 Released 21-Jun-2021"
44

55
__version__ = version.split()[0] # For PEP 396 and PEP 345
66

Diff for: docs/call reference.md

+18-6
Original file line numberDiff line numberDiff line change
@@ -6141,6 +6141,12 @@ Parameter Descriptions:
61416141

61426142
Output Element - a multi-lined text area where stdout and stderr are re-routed to.
61436143

6144+
The Multiline Element is the superior and recommended method for showing the output of stdout.
6145+
The Multiline Element has been added to significantly while the Output element has not.
6146+
6147+
Of course, Output Element continues to operate and be backwards compatible, but you're missing out on
6148+
features such as routing the cprint output to the element.
6149+
61446150
```
61456151
Output(size = (None, None),
61466152
s = (None, None),
@@ -11266,7 +11272,10 @@ close()
1126611272

1126711273
### current_location
1126811274

11269-
Get the current location of the window's top left corner
11275+
Get the current location of the window's top left corner.
11276+
Note that this value may not take into account the titlebar and menubar.
11277+
These parts of a window are created by the OS. As a result, the value returned may be
11278+
off depending on if your window has a titlebar or menubar.
1127011279

1127111280
`current_location()`
1127211281

@@ -11869,7 +11878,10 @@ Close()
1186911878

1187011879
### CurrentLocation
1187111880

11872-
Get the current location of the window's top left corner
11881+
Get the current location of the window's top left corner.
11882+
Note that this value may not take into account the titlebar and menubar.
11883+
These parts of a window are created by the OS. As a result, the value returned may be
11884+
off depending on if your window has a titlebar or menubar.
1187311885

1187411886
`CurrentLocation()`
1187511887

@@ -14069,8 +14081,8 @@ Parameter Descriptions:
1406914081
OneLineProgressMeter(title,
1407014082
current_value,
1407114083
max_value,
14072-
key = "OK for 1 meter",
1407314084
args=*<1 or N object>,
14085+
key = "OK for 1 meter",
1407414086
orientation = "v",
1407514087
bar_color = (None, None),
1407614088
button_color = None,
@@ -14087,8 +14099,8 @@ Parameter Descriptions:
1408714099
| str | title | text to display in eleemnt |
1408814100
| int | current_value | current value |
1408914101
| int | max_value | max value of QuickMeter |
14090-
| str or int or tuple or object | key | Used to differentiate between mutliple meters. Used to cancel meter early. Now optional as there is a default value for single meters |
1409114102
| Any | *args | stuff to output |
14103+
| str or int or tuple or object | key | Used to differentiate between mutliple meters. Used to cancel meter early. Now optional as there is a default value for single meters |
1409214104
| str | orientation | 'horizontal' or 'vertical' ('h' or 'v' work) (Default value = 'vertical' / 'v') |
1409314105
| Tuple(str, str) | bar_color | color of a bar line |
1409414106
| (str, str) or str | button_color | button color (foreground, background) |
@@ -14115,8 +14127,8 @@ Parameter Descriptions:
1411514127
one_line_progress_meter(title,
1411614128
current_value,
1411714129
max_value,
14118-
key = "OK for 1 meter",
1411914130
args=*<1 or N object>,
14131+
key = "OK for 1 meter",
1412014132
orientation = "v",
1412114133
bar_color = (None, None),
1412214134
button_color = None,
@@ -14133,8 +14145,8 @@ Parameter Descriptions:
1413314145
| str | title | text to display in eleemnt |
1413414146
| int | current_value | current value |
1413514147
| int | max_value | max value of QuickMeter |
14136-
| str or int or tuple or object | key | Used to differentiate between mutliple meters. Used to cancel meter early. Now optional as there is a default value for single meters |
1413714148
| Any | *args | stuff to output |
14149+
| str or int or tuple or object | key | Used to differentiate between mutliple meters. Used to cancel meter early. Now optional as there is a default value for single meters |
1413814150
| str | orientation | 'horizontal' or 'vertical' ('h' or 'v' work) (Default value = 'vertical' / 'v') |
1413914151
| Tuple(str, str) | bar_color | color of a bar line |
1414014152
| (str, str) or str | button_color | button color (foreground, background) |

0 commit comments

Comments
 (0)