On 2020-10-31 01:20:39 -0000, Grant Edwards wrote:
> On 2020-10-30, Peter J. Holzer <hjp-pyt...@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.

Ok. I am trying one last time.

Consider a very minimalistic image viewer. It has a menu bar at the top
and shows one image. The path to the image may be passed as sys.argv[1],
in which case it should be immediately displayed. The image should be
displayed in "natural" size but must be scaled down if it doesn't fit.


How do you do that?

You may use any framework, preferrably (since this is a Python group)
a cross-platform framework usable from Python.

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | h...@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment: signature.asc
Description: PGP signature

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

Reply via email to