code: def Draw(self, grid, attr, dc, rect, row, col, is_selected):
          
  
          render = wx.RendererNative.Get()
  
          # clear the background
          dc.SetBackgroundMode(wx.SOLID)
  
          if is_selected:
              dc.SetBrush(wx.Brush(wx.BLUE, wx.SOLID))
              dc.SetPen(wx.Pen(wx.BLUE, 1, wx.SOLID))
          else:
              dc.SetBrush(wx.Brush(wx.WHITE, wx.SOLID))
              dc.SetPen(wx.Pen(wx.WHITE, 1, wx.SOLID))
          dc.DrawRectangleRect(rect)
  
          cb_lbl = grid.GetCellValue(row, col)
          string_x = rect.x + 2
          string_y = rect.y + 2
          dc.DrawText(cb_lbl, string_x, string_y)
  
          button_x = rect.x + rect.width - self.iconwidth
          button_y = rect.y
          button_width = self.iconwidth
          button_height = rect.height
          button_size = button_x, button_y, button_width, button_height
          render.DrawComboBoxDropButton(grid, dc, button_size,
                                        wx.CONTROL_CURRENT)
docs: Draws the text and the combobox icon