demo tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -103,17 +103,17 @@ class CustomDataTable(gridlib.PyGridTableBase):
|
|||||||
|
|
||||||
# Notify the grid
|
# Notify the grid
|
||||||
grid.BeginBatch()
|
grid.BeginBatch()
|
||||||
msg = gridlib.GridTableMessage(
|
|
||||||
self, gridlib.GRIDTABLE_NOTIFY_COLS_DELETED, frm, 1
|
|
||||||
)
|
|
||||||
|
|
||||||
grid.ProcessTableMessage(msg)
|
|
||||||
|
|
||||||
msg = gridlib.GridTableMessage(
|
msg = gridlib.GridTableMessage(
|
||||||
self, gridlib.GRIDTABLE_NOTIFY_COLS_INSERTED, to, 1
|
self, gridlib.GRIDTABLE_NOTIFY_COLS_INSERTED, to, 1
|
||||||
)
|
)
|
||||||
|
|
||||||
grid.ProcessTableMessage(msg)
|
grid.ProcessTableMessage(msg)
|
||||||
|
|
||||||
|
msg = gridlib.GridTableMessage(
|
||||||
|
self, gridlib.GRIDTABLE_NOTIFY_COLS_DELETED, frm, 1
|
||||||
|
)
|
||||||
|
grid.ProcessTableMessage(msg)
|
||||||
|
|
||||||
grid.EndBatch()
|
grid.EndBatch()
|
||||||
|
|
||||||
# Move the row
|
# Move the row
|
||||||
@@ -138,16 +138,15 @@ class CustomDataTable(gridlib.PyGridTableBase):
|
|||||||
grid.BeginBatch()
|
grid.BeginBatch()
|
||||||
|
|
||||||
msg = gridlib.GridTableMessage(
|
msg = gridlib.GridTableMessage(
|
||||||
self, gridlib.GRIDTABLE_NOTIFY_ROWS_DELETED, frm, 1
|
self, gridlib.GRIDTABLE_NOTIFY_ROWS_INSERTED, to, 1
|
||||||
)
|
)
|
||||||
|
|
||||||
grid.ProcessTableMessage(msg)
|
grid.ProcessTableMessage(msg)
|
||||||
|
|
||||||
msg = gridlib.GridTableMessage(
|
msg = gridlib.GridTableMessage(
|
||||||
self, gridlib.GRIDTABLE_NOTIFY_ROWS_INSERTED, to, 1
|
self, gridlib.GRIDTABLE_NOTIFY_ROWS_DELETED, frm, 1
|
||||||
)
|
)
|
||||||
|
|
||||||
grid.ProcessTableMessage(msg)
|
grid.ProcessTableMessage(msg)
|
||||||
|
|
||||||
grid.EndBatch()
|
grid.EndBatch()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user