On Wed, Apr 17, 2002 at 10:42:24AM -0700, Colin Fox wrote: > On Sun, 2002-04-14 at 15:15, Colin Fox wrote: > > Does anyone have any example code showing dynamic updating of a line? > > > > Specifically, dragging an endpoint of a line around on a canvas. > > > > Hmm. Silence on the list for this question. Does that mean I'm the first > person to try to draw lines with pygtk/pygnome on a canvas? Does anyone > know of documentation that actually describes what you have to do? Any > examples of lines? Anyone? > > Any help would be greatly appreciated. Thanks! >
I don't have any experience (yet) with dynamic updating, which is why I was silent... I'm using the C gtk-canvas from http://developer.gnome.org/tools/repo/repo-gtk.html, for which I generated C++ wrappers for our application. We call the C++ code from Python via SWIG. In any case, I have no trouble drawing lines, although I haven't tried dragging them around. I'd be happy to send you the C++ and SWIG files, if that would be helpful. -- Steve -- /* EMail: [EMAIL PROTECTED] ------------------ Phone: (301) 975-5423 -- -- WWW: http://math.nist.gov/~SLanger/ ------------ Fax: (301) 990-4127 -- -- Mail: NIST; 100 Bureau Drive -- Stop 8910; Gaithersburg, MD 20899-8910 */ _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
