Hi all, attached there is the asked python port. It works but shows next message:
[EMAIL PROTECTED] inigo]$ python test-path_def.py (test-path_def.py:7912): GnomeCanvas-CRITICAL **: file gnome-canvas- path-def.c: line 949 (gnome_canvas_path_def_closepath_current): assertion `path->end - path->substart > 2' failed Any idea? Best regards, I�igo El mar, 20-07-2004 a las 10:11 -0300, Christian Robottom Reis escribi�: > On Tue, Jul 20, 2004 at 09:30:32AM +0200, Xavier Ordoquy wrote: > > On Mon, 2004-07-19 at 18:04 -0400, Eric Newman wrote: > > > Hi all, > > > > Hi > > > > > Do you know of any way to draw an arc (elliptical or circular) on a gnome > > > canvas from python? > > > [...] > > > > A quick look to the C examples shows that they are using bpath to create > > ellipses. > > > > GnomeCanvasPathDef *path_def; > > > > path_def = gnome_canvas_path_def_new(); > > > > gnome_canvas_path_def_moveto(path_def, 500.0, 175.0); > > gnome_canvas_path_def_curveto(path_def, 550.0, 175.0, 550.0, > > 275.0, 500.0, 275.0); > > setup_item(gnome_canvas_item_new(root, > > gnome_canvas_bpath_get_type(), > > "bpath", path_def, > > "outline_color", "black", > > "width_pixels", 4, > > NULL)); > > gnome_canvas_path_def_unref(path_def); > > > > You'll have to port the code to python however. > > If anyone's brave enough to do this, consider submitting it for addition > to the FAQ, it's definitely a nice thing to include. > > Take care, > -- > Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331
test-path_def.py
Description: application/python
signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
