Best way to determine user's screensize?

Igor Korot ikorot01 at gmail.com
Sat Oct 31 13:07:24 EDT 2020


Hi,

On Sat, Oct 31, 2020, 11:40 AM Grant Edwards <grant.b.edwards at gmail.com>
wrote:

> On 2020-10-31, Peter J. Holzer <hjp-python at hjp.at> wrote:
>
> > Very often this is not the case: An image viewer will be used to
> > display images which are larger than the screen.
>
> Tell the image widget what image you want to display, and then forget
> about it. Let the toolkit and window manager do their jobs.
>

You also should pick an appropriate control for displaying it.
I don't think you can use static window - you should be using something
with the scrollbar, which will size accordingly and display scrollers on
demand.


> > A MUA may have to display hundreds of mailboxes, and maybe tens of
> > thousands of mails in a single mailbox.
>
> No. It doesn't. It has to display a tree widget that shows N items and
> holds tens of thousands of items, or a scrolling list widget than
> shows M items and holds tens of thousands of items.  Pick reasonable
> initial default values for N,M and then let the window manager and
> user do the right thing.
>

Exactly.


> > I am very much a fan of letting layout and window managers do as
> > much as possible. But I don't think they can do everything. They
> > simply don't have the necessary information.
>
> They do in a well-written application.
>

As I said earlier - that's why devs get their money.


> --
> Gran
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>


More information about the Python-list mailing list