@@ -0,0 +1,1612 @@
+import wx%0Aprint wx.version()%0A%0Aclass FancyFrame(wx.Frame):%0A    def __init__(self, width, height):%0A        wx.Frame.__init__(self, None,%0A                          style = wx.STAY_ON_TOP %7C%0A                          wx.FRAME_NO_TASKBAR %7C%0A                          wx.FRAME_SHAPED,%0A                          size=(width, height))%0A        self.amount = 255;%0A        self.delta = -3;%0A        #self.SetTransparent(180)%0A        b = wx.EmptyBitmap(width, height)%0A        dc = wx.MemoryDC()%0A        dc.SelectObject(b)%0A        dc.SetBackground(wx.Brush('black'))%0A        dc.Clear()%0A        dc.SetBrush(wx.TRANSPARENT_BRUSH)%0A        dc.SetPen(wx.Pen('red', 4))%0A        dc.DrawRectangle(10, 10, width-20, height-20)%0A        dc.SelectObject(wx.NullBitmap)%0A        b.SetMaskColour('black')%0A        self.SetShape(wx.RegionFromBitmap(b))%0A%0A        self.Bind(wx.EVT_KEY_UP, self.OnKeyDown)%0A        self.SetBackgroundColour('red')%0A        self.Show(True)%0A%0A        self.timer = wx.Timer(self)%0A        self.timer.Start(25)%0A        self.Bind(wx.EVT_TIMER, self.AlphaCycle)%0A%0A    def AlphaCycle(self, evt):%0A        self.amount += self.delta%0A        if self.amount == 0 or self.amount == 255:%0A            self.delta = -self.delta%0A        self.Move((self.amount,250))%0A        #print self.amount%0A        #self.SetSize((self.amount+100,220))%0A        self.Show()%0A%0A%0A%0A    def OnKeyDown(self, event):%0A        %22%22%22quit if user press Esc%22%22%22%0A        if event.GetKeyCode() == 27:%0A            self.Close(force=True)%0A        else:%0A            event.Skip()%0A%0A%0Aif __name__ == %22__main__%22:%0A    app = wx.App()%0A    f = FancyFrame(300, 300)%0A    app.MainLoop()%0A%0A

add showing rectangle function