tkinter: canvas: error?
Keith Murphy
kpmurphy at my-deja.com
Tue Jul 25 15:28:44 EDT 2000
is this a bug? ...or is it a feature :)
bbox = (80, 80, 120, 120)
canvas = Canvas()
canvas.pack()
canvas.create_rectangle(bbox, fill='black', tag='mybox')
canvas.coords(1, bbox)
Traceback (innermost last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python1.5/lib-tk/Tkinter.py", line 1205, in
coords
self.tk.splitlist(
TclError: wrong # coordinates: expected 0 or 4, got 1
thanks,
-->keith
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list