Best way to determine user's screensize?

Random832 random832 at fastmail.com
Fri Oct 30 23:41:27 EDT 2020


On Fri, Oct 30, 2020, at 20:18, Igor Korot wrote:
> Hi,
> 
> On Fri, Oct 30, 2020 at 6:59 PM Peter J. Holzer <hjp-python at hjp.at> 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?
> 
> It is not up to application.
> It is up to the underlying layout system to decide.

What is a "layout system"? I don't think such a thing exists, in general, for positioning top-level windows on major platforms. Each application has to write its own, and it is reasonable for the layout system itself [which, as I've pointed out, is part of the application - there is no such thing as a system service] to need access to this information.


More information about the Python-list mailing list