Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
More refactoring.
  • Loading branch information
terryjreedy committed May 25, 2019
commit 65fb24251394cdec7f6f6be186901dbeda85324d
14 changes: 4 additions & 10 deletions Lib/idlelib/zoomheight.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,10 @@ def zoom_height(top):

# The constants below for Windows and Mac Aqua are visually determined
# to avoid taskbar or menubar and app icons.
if sys.platform == 'win32':
newy = 0
newheight = newheight - 114
elif macosx.isAquaTk():
newy = 22
newheight = newheight - newy - 88
else:
newy = 0
newheight = newheight - 88

newy, bot_y = ((0, 114) if sys.platform == 'win32' else
(22, 88) if macosx.isAquaTk() else
(0, 88) ) # Guess for anything else.
newheight = newheight - newy - bot_y
newgeom = ('' if height >= newheight else f"{width}x{newheight}+{x}+{newy}")
top.wm_geometry(newgeom)
return newgeom != ""
Expand Down