code: def OnDrawBackground(self, dc, rect, item, flags):
          
  
          # If the item is selected, or its item is even,
          # or if we are painting the combo control itself
          # then use the default rendering.
  
          if (item & 1 == 0 or flags & (wx.combo.ODCB_PAINTING_CONTROL |
                                        wx.combo.ODCB_PAINTING_SELECTED)):
              try:
                  wx.combo.OwnerDrawnComboBox.OnDrawBackground(self, dc,
                                                               rect, item, flags)
              finally:
                  return
  
          # Otherwise, draw every other background with
          # different color.
  
          bg_color = get_color(config["label_color"])
          dc.SetBrush(wx.Brush(bg_color))
          dc.SetPen(wx.Pen(bg_color))
          dc.DrawRectangleRect(rect)
docs: Called for drawing the background area of each item
  
          Overridden from OwnerDrawnComboBox