Randy Smith wrote:
The cropping and scrolling works fine. But when I try to add
responding to resize events, I get into trouble. Specifically:
* When I naively change the size of the image shown to be borderwidth
less than the size indicated in the configure event, the size of the
image
On Feb 8, 6:27 am, James Stroud jstr...@mbi.ucla.edu wrote:
I can't test your code because I don't have the test image and for some
reason it does not recognize a tiff of my own. But, just glancing at
your code, it looks like a quick-fix would be to set self.zoom to a
sentinel at the end of
curiouserra...@gmail.com wrote:
Thanks! I hadn't known about the return 'break' technique. But
I don't follow your sentinel suggestion; how would that sentinel
ever get reset?
Presumably you would set it from some kind of input. Basically, if you
don't need to zoom, you wouldn't bother
Hi! I'm looking for help with a Tkinter program's handling of resize.
I'm trying to do a fairly simple widget that shows a cropped part of a
larger image, and let's you navigate within the larger image through a
variety of methods. The widget hierarchy is:
root
ImageWidget (my class)