def AppendRows(self, numRows=1):
part = self._OM.new('part')
part.defaultdata = np.nan
self._OM.add(part, self.partitionuid)
self.partmap.append(part.uid)
color = self.get_color(0)
self.set_color(-1,color)
self.GetView().BeginBatch()
msg = wx.grid.GridTableMessage(self, wx.grid.GRIDTABLE_NOTIFY_ROWS_APPENDED, numRows)
self.GetView().ProcessTableMessage(msg)
self.GetView().EndBatch()
return True
评论列表
文章目录