Greeting.
I'm very new to Python. I'm using GTK to build an "attitude" visualization tool. I've got it working to my satisfaction but I would like to have the reference axes, the projections, and the target vector be different colors. Using the gtk.gdk.GC (graphics context object), that I have named "gc", I tried:
gc.set_foreground(gtk.gdk.parse_color("#ff0000")) but it doesn't work. By "doesn't work", I mean all the lines that are drawn with "gc" after that are still black.
Is there a trick?
_________________
Bob Rashkin
I'm very new to Python. I'm using GTK to build an "attitude" visualization tool. I've got it working to my satisfaction but I would like to have the reference axes, the projections, and the target vector be different colors. Using the gtk.gdk.GC (graphics context object), that I have named "gc", I tried:
gc.set_foreground(gtk.gdk.parse_color("#ff0000")) but it doesn't work. By "doesn't work", I mean all the lines that are drawn with "gc" after that are still black.
Is there a trick?
_________________
Bob Rashkin