In the following Display inherits from the Tkinter class Canvas: import sys from Tkinter import * class Display(Canvas) : ... def fill_canvas() : slop=self.slop set_sr(int(self.cget('width'))+slop, int(self.cget('height'))+slop) self.refresh() ...
disp=Display(fred, None) disp.pack() def stupid(unused) : disp.fill_canvas() disp.bind("<Configure>", stupid) mainloop() >From the above I get: Exception in Tkinter callback ... File Ca_canvas.py, line 173, in stupid def stupid(unused) : disp.fill_canvas() TypeError: fill_canvas() takes no arguments (1 given) What is going on? I tried to do something similar with lambda and got the same result. -- http://mail.python.org/mailman/listinfo/python-list