SV: Adjust a canvas as the window is resized

2008-03-10 Thread K Viltersten
>> Do i need to set a callback to a canvas >> in order to "listen" to the root window >> being resized in order to make it adjust >> its contents? >> >> If so, how? If not, how do i make the >> canvas draw a line from one corner to >> an other? > > import Tkinter as tk > > root = tk.Tk() > canva

Re: Adjust a canvas as the window is resized

2008-03-10 Thread Peter Otten
K Viltersten wrote: > Do i need to set a callback to a canvas > in order to "listen" to the root window > being resized in order to make it adjust > its contents? > > If so, how? If not, how do i make the > canvas draw a line from one corner to > an other? import Tkinter as tk root = tk.Tk() ca

Adjust a canvas as the window is resized

2008-03-08 Thread K Viltersten
Do i need to set a callback to a canvas in order to "listen" to the root window being resized in order to make it adjust its contents? If so, how? If not, how do i make the canvas draw a line from one corner to an other? from Tkinter import * class Demo(Frame): def __init__(self, master =