semi transparent circle

I am trying to draw a semi transparent circle

        brush = wx.Brush(wx.Color(r, g, b, 128))

        dc.SetPen(pen)
        dc.SetBrush(brush)
        dc.DrawCircle(self.center[0], self.center[1], self.radius)

It Draws fine, just solid instead of semi transparent. Is this posible?

Are you using a GraphicsContext DC?

like this:

pdc = wx.PaintDC(self) #or wx.MemoryDC
dc = wx.GCDC(pdc)

···

On 2/12/07, Dj Gilcrease < digitalxero@gmail.com> wrote:

I am trying to draw a semi transparent circle

    brush = wx.Brush(wx.Color(r, g, b, 128))

    dc.SetPen(pen)
    dc.SetBrush(brush)
    dc.DrawCircle(self.center[0], self.center[1], self.radius)

It Draws fine, just solid instead of semi transparent. Is this posible?


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org

For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


There is NO FATE, we are the creators.

Nope, I wasnt. when I switched to that it worked

···

On 2/11/07, Peter Damoc <pdamoc@gmail.com> wrote:

Are you using a GraphicsContext DC?

like this:

pdc = wx.PaintDC(self) #or wx.MemoryDC
dc = wx.GCDC(pdc)

On 2/12/07, Dj Gilcrease < digitalxero@gmail.com> wrote:
>
> I am trying to draw a semi transparent circle
>
> brush = wx.Brush(wx.Color(r, g, b, 128))
>
> dc.SetPen(pen)
> dc.SetBrush(brush)
> dc.DrawCircle(self.center[0], self.center[1], self.radius)
>
> It Draws fine, just solid instead of semi transparent. Is this possible?