Best way to determine user's screensize?

Grant Edwards grant.b.edwards at gmail.com
Fri Oct 30 21:20:39 EDT 2020


On 2020-10-30, 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?

You arrange the widgets the way you want them using the user's
settings for the toolkit and let the sizers figure out the size.

> It has to make some choice, and any hard-coded value is almost
> certainly wrong.

Definitely, absolutely wrong.

> So why should an application not use the screen size as
> one factor?

Because it's got nothing to do with the appropriate window size for
the application?

Why should the application start out any larger just because the
screen is larger?

--
Grant






More information about the Python-list mailing list