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
Oops. I just forgot self.
--
http://mail.python.org/mailman/listinfo/python-list
;> 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
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