Best way to determine user's screensize?

boB Stepp robertvstepp at gmail.com
Fri Oct 30 20:11:56 EDT 2020


On Sat, Oct 31, 2020 at 12:56:30AM +0100, Peter J. Holzer wrote:

>So, assuming the user is invoking the application for the first time,
>how should an application determine how much of the screen it should
>use? It has to make some choice, and any hard-coded value is almost
>certainly wrong. So why should an application not use the screen size as
>one factor?

I have been following this discussion with some interest (except for the
grumpy parts ~(:>)) ), and have wondered this same thing.  Is there any
good guidance on how to answer this question?  Or should it be up to the
combination of GUI toolkit and OS being used?  It seems that if the
programmer does nothing, some default size is generated.

As a user I have not been too concerned about the size presented upon first
using a program.  What gets my dander up is what happens *after* I set the
size I prefer.  Many programs do not store this preference for future runs
of the program or even during the same session when a new window is
generated of the exact same type.  A Windows-based application I use for
work constantly annoys me in this regard, especially when I am working at
home on my (not as wide as Chris') ultra-wide monitor:  I open external
beam planning window for patient #1, resize it.  Open same for next patient
-- must resize once again (...and again, and again, ...).

-- 
Wishing you only the best,

boB Stepp


More information about the Python-list mailing list