I use Python 1.5.1, PyGTK and PyGNOME (I'm learning ;).
1) How can I erase (clear) the canvas without destroying it with
canvas.destroy().
That means having added several ellipses with...
canvas = GnomeCanvas()
ellipse = canvas.root().add('ellipse', x1=x1, y1=y1, x2=x2, y2=y2,
fill_color='blue',
outline_color='black',width_units=1.0)
...how can I delete *all* of them and clear the canvas (and how can
I delete the *last one* or the
*one just before*).
2) How can I add a pixmap into the canvas instead of this ellipse. I
tried to use :
pixmap = GnomePixmap()
pixmap.load_file('generic.xpm',-1,-1) ......... ?
and
win = GtkWindow()
pix, mask = gtk.create_pixmap_from_xpm(win, None, "generic.xpm")
pixmap = gtk.GtkPixmap(pix, mask)
win.add(pixmap)
new_node = self.canvas.root().add( <== ? (and what is
the anchor argument in the
GnomeCanvasGroup ?)
...but no success.
Thanks for your help.
Sebastien Kessler
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]