--- a/controls/CustomTable.py Thu Oct 19 10:57:35 2017 +0300
+++ b/controls/CustomTable.py Thu Oct 19 11:03:03 2017 +0300
@@ -88,8 +88,18 @@
grid.CloseEditControl()
grid.BeginBatch()
for current, new, delmsg, addmsg in [
- (self._rows, self.GetNumberRows(), wx.grid.GRIDTABLE_NOTIFY_ROWS_DELETED, wx.grid.GRIDTABLE_NOTIFY_ROWS_APPENDED),
- (self._cols, self.GetNumberCols(), wx.grid.GRIDTABLE_NOTIFY_COLS_DELETED, wx.grid.GRIDTABLE_NOTIFY_COLS_APPENDED),
+ (
+ self._rows,
+ self.GetNumberRows(),
+ wx.grid.GRIDTABLE_NOTIFY_ROWS_DELETED,
+ wx.grid.GRIDTABLE_NOTIFY_ROWS_APPENDED
+ ),
+ (
+ self._cols,
+ self.GetNumberCols(),
+ wx.grid.GRIDTABLE_NOTIFY_COLS_DELETED,
+ wx.grid.GRIDTABLE_NOTIFY_COLS_APPENDED
+ ),
]:
if new < current:
msg = wx.grid.GridTableMessage(self, delmsg, new, current-new)