code: def OnLinkBitmap(self, event):
          
  
          # Get file name
          wildcard = "*"
          message = _("Select bitmap for current cell")
          style = wx.OPEN | wx.CHANGE_DIR
          filepath, __ = \
              self.grid.interfaces.get_filepath_findex_from_user(wildcard,
                                                                 message, style)
          try:
              bmp = wx.Bitmap(filepath)
          except TypeError:
              return
  
          if bmp.Size == (-1, -1):
              # Bitmap could not be read
              return
  
          code = "wx.Bitmap(r'{filepath}')".format(filepath=filepath)
  
          key = self.grid.actions.cursor
          self.grid.actions.set_code(key, code)
docs: Link bitmap event handler