[pygtk] Draw a rectangle in drawing area with outline and stipple

Manavan J manavan.j at gmail.com
Mon Jun 8 04:34:44 WST 2009


Hi,
 I want to draw a rectangle inside the drawing area. I want to use a stipple
pattern and want to have outline. I created the GC to have the desired
stipple pattern and fill colour. However, The rectangles are drawn without
any outline.

 window.new_gc(stipple=self.stipple,fill=gtk.gdk.STIPPLED,
line_width=self.line_style.size, line_style=gtk.gdk.SOLID)

 Please advice what parameter needs to be passed in order to get the
rectangles with an outline.

 Another question, is it possible to have the outline color different from
the fg color.

Regards,
Manavan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090608/f74deaaf/attachment.htm 


More information about the pygtk mailing list