On Thu, Oct 31, 2002 at 09:08:04AM +0800, James Henstridge wrote:
John Hunter wrote:
Does someone have some example code to show me how to use draw_line or draw_lines
with line attributes, eg, GDK_LINE_DOUBLE_DASH, etc...
All drawing operations in X take a GC (which stands for graphics
James == James Henstridge [EMAIL PROTECTED] writes:
James method. You can then use the gc.set_line_attributes()
James method to set the line width, line style, cap style and
James join style. gc.set_line_attributes(3,
James gtk.gdk.LINE_DOUBLE_DASH, gtk.gdk.CAP_BUTT,
James
John == John Hunter [EMAIL PROTECTED] writes:
John What magical import incantation do I need to get a gtk.gdk?
John You can seek some of my failures below.
OK, just upgraded to 0.6.9. And found the magic gdk object as gtk.GDK
which defines the line attributes.
Thanks,
John Hunter
Does someone have some example code to show me how to use draw_line or draw_lines
with line attributes, eg, GDK_LINE_DOUBLE_DASH, etc...
Thanks,
John
___
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK
John Hunter wrote:
Does someone have some example code to show me how to use draw_line or draw_lines
with line attributes, eg, GDK_LINE_DOUBLE_DASH, etc...
All drawing operations in X take a GC (which stands for graphics
context), which holds some settings used for doing the drawing. If you