You can create your own dash pattern using set_dashes(). See: http://www.moeraki.com/pygtktutorial/sec-drawingarea.html#AEN1621
Should allow you to create a dotted line pasttern. John John Hunter wrote:
I was surprised to see that there was not a dotted line style in gtk.
I have found GDK.LINE_DOUBLE_DASH, GDK.LINE_ON_OFF_DASH,
GDK.LINE_SOLID. I can write my own, but I thought something like that
might exist.
I know about GtkDrawingArea.draw_points, but I am looking for a dotted
line that interpolates between the x,y points, as LINE_ON_OFF_DASH
does in:
gc.line_style = GDK.LINE_ON_OFF_DASH
gc.cap_style = GDK.CAP_BUTT
gc.join_style = GDK.JOIN_MITER
widget.draw_lines(gc, zip(xt, yt) )
Anyway, before I reinvent the wheel, just wanted to make sure that I
am not missing something
Thanks,
John Hunter
pygtk 0.6.9
libgtk-1.2
PS: grepping the pygtk source, I notice that there is a
CTREE_LINES_DOTTED. Can someone explain what this is to me?
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
