The demo is not about "drawing a line" but rather displaying the
available pen styles and what they look like, and there are plenty of
reasons to sometimes use a transparent pen when using a DC for drawing.
--
Robin Dunn
Software Craftsman
http://wxPython.org
> The demo is not about "drawing a line" but rather displaying the
> available pen styles and what they look like, and there are plenty
> of reasons to sometimes use a transparent pen when using a DC for
> drawing.
>
>
> What is the point of drawing a transparent line all by itself ? It
> seems to make sense only when calling DrawRectangle() so that the
> rectangle outline is not seen.
Like I said above, it doesn't matter that it makes no sense to draw a
transparent line. The point of the demo is to let the user know what
the pen and brush styles are and what they look like. wx.TRANSPARENT is
a valid pen style, and when you use it with a pen in a DC drawing
operation the pen is not stroked. I think the demo is showing that just
fine.