From 5bff3c86ab77e9d831b3cd19b45654c7eef22931 Mon Sep 17 00:00:00 2001 From: Tal Einat Date: Mon, 17 Jun 2019 22:41:00 +0300 Subject: [PATCH] bpo-37039: Make IDLE's Zoom Height adjust to users' screens (GH-13678) Measure required height by quickly maximizing once per screen. A search for a better method failed. --- Doc/library/idle.rst | 5 +- Lib/idlelib/NEWS.txt | 8 ++ Lib/idlelib/help.html | 16 ++- Lib/idlelib/zoomheight.py | 119 ++++++++++++++---- .../2019-06-04-23-27-33.bpo-37039.FN_fBf.rst | 4 + 5 files changed, 124 insertions(+), 28 deletions(-) create mode 100644 Misc/NEWS.d/next/IDLE/2019-06-04-23-27-33.bpo-37039.FN_fBf.rst diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst index bd24695c728..d494c9766eb 100644 --- a/Doc/library/idle.rst +++ b/Doc/library/idle.rst @@ -289,7 +289,10 @@ Show/Hide Code Context (Editor Window only) Zoom/Restore Height Toggles the window between normal size and maximum height. The initial size defaults to 40 lines by 80 chars unless changed on the General tab of the - Configure IDLE dialog. + Configure IDLE dialog. The maximum height for a screen is determined by + momentarily maximizing a window the first time one is zoomed on the screen. + Changing screen settings may invalidate the saved height. This toogle has + no effect when a window is maximized. Window menu (Shell and Editor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt index 982af776725..7646aed5936 100644 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -3,6 +3,14 @@ Released on 2019-10-20? ====================================== +bpo-37039: Adjust "Zoom Height" to individual screens by momemtarily +maximizing the window on first use with a particular screen. Changing +screen settings may invalidate the saved height. While a window is +maximized, "Zoom Height" has no effect. + +bpo-35763: Make calltip reminder about '/' meaning positional-only less +obtrusive by only adding it when there is room on the first line. + bpo-35610: Replace now redundant editor.context_use_ps1 with .prompt_last_line. This finishes change started in bpo-31858. diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html index 228b3195cf9..e27ec8d6e17 100644 --- a/Lib/idlelib/help.html +++ b/Lib/idlelib/help.html @@ -6,7 +6,7 @@ - IDLE — Python 3.8.0a4 documentation + IDLE — Python 3.9.0a0 documentation @@ -19,7 +19,7 @@ @@ -50,6 +50,7 @@ +