[Tutor] Tkinter canvas on frame

Phil phillor9 at gmail.com
Tue Mar 1 17:51:49 EST 2022


On 1/3/22 21:47, Alan Gauld via Tutor wrote:

> So what if the user draws it even bigger? What happens in other graphics
> programs you've used? Usually you have the option to zoom in/out without
> changing the size of the window. But when zoomed in part of the image
> will be off-screen.
>
> But scaling the content of a canvas could be tricky. I don't know
> if the widget offers any assistance there?

Thank you Alan and Dennis,

I woke up during the early hours of this morning and realised that I 
would need a zoom function and felt a bit silly for posting such a silly 
question. I thought about this for awhile but couldn't think of an easy 
way to achieve this. As Dennis mentioned a redraw event is common, 
otherwise an uncovered window wouldn't be redrawn. I'll give this some 
more thought.

-- 

Regards,
Phil



More information about the Tutor mailing list