>>>>> "John" == John Finlay <[EMAIL PROTECTED]> writes:

    John> You can create your own dash pattern using
    John> set_dashes(). See:
    John> http://www.moeraki.com/pygtktutorial/sec-drawingarea.html#AEN1621

    John> Should allow you to create a dotted line pasttern.

Thanks much, for the record, the code below creates the desired
effect:

    self._spacing = 2
    gc.line_style = GDK.LINE_ON_OFF_DASH
    gc.cap_style =  GDK.CAP_BUTT
    gc.join_style = GDK.JOIN_ROUND
    gc.set_dashes(0,[1,self._spacing])
    widget.draw_lines(gc, zip(x, y) )

John Hunter
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to