Author terry.reedy
Recipients aroberge, cheryl.sabella, serhiy.storchaka, terry.reedy
Date 2019-05-25.19:58:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558814325.86.0.04869826448.issue37039@roundup.psfhosted.org>
In-reply-to
Content
I have a 27" 2560X1440 screen.  For me:
>>> import tkinter; tkinter.Tk().tk.call('tk', 'scaling')
1.333...

I presume 3200x200 should be 3200x2000 and that the diagonal size is small enough that the screen is a HiDPI screen, making tk's scaling above 1.4, so that run.fix_scaling() adjusts font sizes.

I am not sure what you mean by 'scaling at 100%/200%' other than tk scaling <, >= 1.4 or HiDPI no/yes, or how you changed the scaling.  I grepped idlelib for 'scaling' and only found references to the function and the tk call.

In any case, tcl/tk does not properly support HiDPI screens.  Serhiy Storchaka contributed fix_scaling to make IDLE readable on a HiDPI Linux laptop.  The 1.4 and .75 values are empirical.  With help from Windows experts, I added the SetProcessDpiAwareness call near the top of pyshell when a Windows user with a HiDPI screen reported a problem on idledev.  I believe that the call tells Windows that IDLE already makes a scaling adjustment, so it should not also do so.

zoomheight.zoom_height() restores by calling top.wm_geometry('').
https://www.tcl.tk/man/tcl8.6/TkCmd/wm.htm#M42 says
  "If newGeometry is specified as an empty string then any existing user-specified geometry for window is cancelled, and the window will revert to the size requested internally by its widgets."

This works for normal screens but somehow not for your HiDPI Windows screen.  Can you do the print experiment I suggested previously?

I will experiment to see how much '22' needs to be increased for Windows to accomodate the task bar.  What is really needed is to determine the size and orientation of the taskbar, or rather the remaining 'full-screen' height.

Serhiy, do you still have a HiDPI screen?  If so, does Options => Zoom/Restore Height work for you?  Do Linux desktop managers have bottom panels or taskbars that can cover part of a zoomed window?

Ignore any task bar over status bar issue.)
History
Date User Action Args
2019-05-25 19:58:45terry.reedysetrecipients: + terry.reedy, aroberge, serhiy.storchaka, cheryl.sabella
2019-05-25 19:58:45terry.reedysetmessageid: <1558814325.86.0.04869826448.issue37039@roundup.psfhosted.org>
2019-05-25 19:58:45terry.reedylinkissue37039 messages
2019-05-25 19:58:45terry.reedycreate