mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-07-21 04:31:09 +02:00
wxGRIDTABLE_REQUEST_VIEW_GET_VALUES and wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES have been removed from wxWidgets
This commit is contained in:
@@ -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
|
||||
|
@@ -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'))
|
||||
|
||||
#-----------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user