def rounded_rectangle_region(width, height, radius):
bmp = wx.Bitmap.FromRGBA(width, height) <EOL>dc = wx.MemoryDC(bmp)<EOL>dc.Brush = wx.Brush((<NUM_LIT:255>,) * <NUM_LIT:3>) <EOL>dc.DrawRoundedRectangle(<NUM_LIT:0>, <NUM_LIT:0>, width, height, radius)<EOL>dc.SelectObject(wx.NullBitmap)<EOL>bmp.SetMaskColour((<NUM_LIT:0>,) * <NUM_LIT:3>)<EOL>return wx.Region(bmp)<EOL>
Returns a rounded rectangle wx.Region