[Tutor] Tkinter canvas on frame

Phil phillor9 at gmail.com
Sun Feb 27 18:00:31 EST 2022


On 28/2/22 04:01, Alan Gauld via Tutor wrote:

> I meant to add, if you want a colour border why not just
> set the border of the frame? Then you can make the canvas fill it.

I've experimented with highlightbackground, highlightthickness, 
borderwidth and various pack options but still the coloured frame sits 
above the canvas rather than surrounding the canvas. I've copied the 
code from several examples but still the same result.

I've seen images showing what I have in mind but I have not discovered 
how it's achieved.

-- 
Regards,
Phil



More information about the Tutor mailing list