Best way to determine user's screensize?

Chris Angelico rosuav at gmail.com
Sat Oct 31 00:01:44 EDT 2020


On Sat, Oct 31, 2020 at 2:43 PM Random832 <random832 at fastmail.com> wrote:
>
> 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.
>

Window managers most certainly do exist, and they are something that
the user, not the application, controls.

ChrisA


More information about the Python-list mailing list