diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-12-24 18:26:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 18:26:28 (GMT) |
commit | c6c43b28746b0642cc3c49dd8138b896bed3028f (patch) | |
tree | 423617d022b2e4a7f9c1bd5e67c269a37bad174d /Misc | |
parent | 6ec0adefad60ec7cdec61c44baecf1dccc1461ab (diff) | |
download | cpython-c6c43b28746b0642cc3c49dd8138b896bed3028f.zip cpython-c6c43b28746b0642cc3c49dd8138b896bed3028f.tar.gz cpython-c6c43b28746b0642cc3c49dd8138b896bed3028f.tar.bz2 |
bpo-42685: Improve placing of simple query windows. (GH-23856)
* If parent is specified and mapped, the query widget is
centered at the center of parent. Its position and size
can be corrected so that it fits in the virtual root window.
* Otherwise it is centered at the center of the screen.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-12-19-17-32-43.bpo-42685.kwZlwp.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-12-19-17-32-43.bpo-42685.kwZlwp.rst b/Misc/NEWS.d/next/Library/2020-12-19-17-32-43.bpo-42685.kwZlwp.rst new file mode 100644 index 0000000..068546a --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-12-19-17-32-43.bpo-42685.kwZlwp.rst @@ -0,0 +1,4 @@ +Improved placing of simple query windows in Tkinter (such as +:func:`tkinter.simpledialog.askinteger`). They are now centered at the +center of the parent window if it is specified and shown, otherwise at the +center of the screen. |