On Wed, Jun 04, 2003 at 03:51:15PM +1200, Michael JasonSmith did merrily tap:
> I am in the process of a Gtk/GNOME 1.2 -> 2 conversion and I am a bit
> stuck on a error I get when I try to create item objects:
> RuntimeError: could not create canvas item object
>
> Any idea about what this means?
>
> The code in question is as follows (without the references to self).
> group.add('line', width_pixels = 1,
> fill_color = 'black',
> points = (x, y,
> x + length, y))
Hi Michael,
try: group.add(gnome.canvas.CanvasLine, ...
cheers,
Alexei
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/