A S�b, 2003-10-25 �s 18:16, Leif Johnson escreveu: > Hi all - > > I've just joined this list after hacking with PyGTK for a few months ; I > hope I don't muss up this first post ! :) I'd like to give a big thanks > to all the PyGTK developers. This package totally rocks. > > So, I have a question about using gnome.canvas.CanvasBpath ; I'm trying > to play around a little bit with a canvas (starting from the > canvas_example.py file), but I can't figure out how to create > CanvasBpath objects. I've tried doing the following : > > my_canvas = gnome.canvas.Canvas(aa = gtk.TRUE) > my_canvas.root().add(gnome.canvas.CanvasBpath, bpath = x) > > but everything I've tried so far for x has given me a `cannot convert x' > message. From what I've been able to see in sodipodi and libart, I need > to create a path using a path def, then a few _curveto commands ... but > those don't seem available in gnome.canvas. > > I'd appreciate any pointers, particularly of the rtfm kind. I've been > banging my head on the wall/google for a bit now with no results, and > hoped you all could help out. Thanks !
I'm afraid that not even with all the reading in the world you're going to get that working. I just looked at the source, it seems the bpath construction property is of type 'pointer', which unfortunately doesn't interface well with python, as you can imagine. Someone needs to change that to a boxed type. Consider filing a bug report. -- Gustavo J. A. M. Carneiro <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
