How to get tkinter canvas to dynamically resize to window width?
I need to get a canvas in tkinter to set its width to the width of the window, and then dynamically re-size the canvas when the user makes the window smaller/bigger. Is there any way of doing this (easily)? ebarr I thought I would add in some extra code to expand on @fredtantini's answer , as it doesn't deal with how to update the shape of widgets drawn on the Canvas . To do this you need to use the scale method and tag all of the widgets. A complete example is below. from Tkinter import * # a subclass of Canvas for dealing with resizing of windows class ResizingCanvas(Canvas): def __init__