wasm-demo/demo/ermis-f/python_m/cur/0454

32 lines
1.0 KiB
Plaintext

From: fredrik at pythonware.com (Fredrik Lundh)
Date: Tue, 20 Apr 1999 15:06:59 GMT
Subject: Tkinter canvas scaling does not work for Images??
References: <87hfqbjtne.fsf@linux01.prc.tno.nl>
Message-ID: <02cb01be8b3f$71912250$f29b12c2@pythonware.com>
X-UID: 454
John van der Koijk wrote:
> I'm playing around with Pmw and (thus Tkinter). After some
> experiments, I found out that I can scale lines and such, but Images
> do not seem to respond to similar requests. The docs don't seem to
> mention this interesting limitation.
answer 1: the "scale" method modifies the item coordinates
only. since bitmaps, images, windows, and text strings have
a single coordinate pair, they can only move around, not
change size...
answer 2: resizing images and fonts on the fly is a non-trivial
problem, especially if you want both performance and port-
ability. so Tk simply passes on this one...
in other words, you're on your own. it can be done,
but it takes some work...
</F>