Hi,
I've just joined this list, and I'd like to start by saying I really
like pygtk. It's very nicely done.
I love programming in Python, and it's great to have a nice toolkit like
gtk available.
My first pygtk project involves using a DrawingArea for 2d data
plotting. I started by grabbing the scribble example included in the
documentation. The plots are drawn as a series of lines segments between
points using draw_line().
It works great for drawing black plots on white. For example, I'm using
calls like:
draw_line(pixmap, drawing_area.get_style().black_gc,
lastX, lastY, thisX, thisY)
Now how do I draw lines of different colors? I'd like to draw a few
plots on the drawing area; each of a different color. I'm not a Gtk or X
programming expert. The Gtk example I have found makes sense, but
doesn't seem to apply to PyGtk (i.e. it uses a set_foreground() call
that is apparently not available to DrawingArea).
I suspect the solution involves using new_gc() in some way, but I'm
pretty lost. Can anybody help?
Tim Voght
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]