def __paint(self, e): dc = AutoDC(self) dc.Font = self.Font rect = self.list.ClientRect if platformName != 'mac': dc.Pen = TRANSPARENT_PEN dc.Brush = WHITE_BRUSH dc.DrawRectangle(0, 0, self.ClientRect.width, H) r1 = Rect( rect.Right - W * 2, rect.y, W, H ) r2 = Rect( rect.Right - W, rect.y, W, H ) r3 = Rect(*self.list.Rect) r3.Inflate(1,1) dc.DrawLabel(_('Sound'), r1, _hdralign) dc.DrawLabel(_('Popup'), r2, _hdralign) dc.SetBrush(wx.TRANSPARENT_BRUSH) dc.SetPen(wx.Pen(wx.Colour(213,213,213))) dc.DrawRectangleRect(r3)