Re: takes no arguments (1 given)

2007-12-03 Thread Bjoern Schliessmann
Tommy Grav wrote: > The class method needs a self argument so that > disp.fill_canvas() can parse the class instance disp > to the method. It's an instance method, no class method. Regards, Björn -- BOFH excuse #88: Boss' kid fucked up the machine -- http://mail.python.org/mailman/listinf

Re: takes no arguments (1 given)

2007-12-03 Thread Mike
Oops. I just forgot self. -- http://mail.python.org/mailman/listinfo/python-list

Re: takes no arguments (1 given)

2007-12-03 Thread Tommy Grav
;> 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

takes no arguments (1 given)

2007-12-03 Thread Mike
self.refresh() ... disp=Display(fred, None) disp.pack() def stupid(unused) : disp.fill_canvas() disp.bind("", 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: fi