>>521できますたありがとうございますこれを使ってwxputhonでエクセルみたいなのを作っていたん ですけど行の追加がうまくいきませんだれか教えてくれればうれしいです class CustomGrid(wx.grid.Grid): def __init__(self,par): wx.grid.Grid.__init__(self,par,ID_TARGET_GRID) rowsize=1 closizr=1 self.CreateGrid(rowsize,closizr) self.SetColLabelValue(0,"colHeader_1") for row in range(0,rowsize) : for col in range(0,closizr) : self.SetCellValue(row,col,"R%s_C%s" %(row+1,col+1))