def DeleteCols(self, pos=0, numCols=1):
if pos >= self.N_COLS:
i = pos - self.N_COLS
for j in range(numCols)[::-1]:
self._OM.remove(self.propmap.pop(i + j))
self.GetView().BeginBatch()
msg = wx.grid.GridTableMessage(self, wx.grid.GRIDTABLE_NOTIFY_COLS_DELETED, pos, numCols)
self.GetView().ProcessTableMessage(msg)
self.GetView().EndBatch()
return True
else:
return False
评论列表
文章目录