wxGRIDTABLE_REQUEST_VIEW_GET_VALUES and wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES have been removed from wxWidgets

This commit is contained in:
Robin Dunn
2020-04-17 20:18:58 -07:00
parent 285395d9f2
commit 260d08e32d
2 changed files with 7 additions and 8 deletions

View File

@@ -67,7 +67,6 @@ class MegaTable(Grid.GridTableBase):
elif new > current:
msg = Grid.GridTableMessage(self,addmsg,new-current)
grid.ProcessTableMessage(msg)
self.UpdateValues(grid)
grid.EndBatch()
@@ -80,13 +79,6 @@ class MegaTable(Grid.GridTableBase):
grid.AdjustScrollbars()
grid.ForceRefresh()
def UpdateValues(self, grid):
"""Update all displayed values"""
# This sends an event to the grid table to update all of the values
msg = Grid.GridTableMessage(self, Grid.GRIDTABLE_REQUEST_VIEW_GET_VALUES)
grid.ProcessTableMessage(msg)
def _updateColAttrs(self, grid):
"""
wx.Grid -> update the column attributes to add the

View File

@@ -95,6 +95,13 @@ def run():
GRID_VALUE_DATETIME = "datetime"
""")
# Add compatibility constants for these since they've been removed from wxWidgets
# TODO: Remove these in a future release.
module.addPyCode("""\
GRIDTABLE_REQUEST_VIEW_GET_VALUES = 2000
GRIDTABLE_REQUEST_VIEW_SEND_VALUES = 2001
""")
module.insertItem(0, etgtools.TypedefDef(type='wxWindow', name='wxGridWindow'))
#-----------------------------------------------------------------