mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01: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:
|
elif new > current:
|
||||||
msg = Grid.GridTableMessage(self,addmsg,new-current)
|
msg = Grid.GridTableMessage(self,addmsg,new-current)
|
||||||
grid.ProcessTableMessage(msg)
|
grid.ProcessTableMessage(msg)
|
||||||
self.UpdateValues(grid)
|
|
||||||
|
|
||||||
grid.EndBatch()
|
grid.EndBatch()
|
||||||
|
|
||||||
@@ -80,13 +79,6 @@ class MegaTable(Grid.GridTableBase):
|
|||||||
grid.AdjustScrollbars()
|
grid.AdjustScrollbars()
|
||||||
grid.ForceRefresh()
|
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):
|
def _updateColAttrs(self, grid):
|
||||||
"""
|
"""
|
||||||
wx.Grid -> update the column attributes to add the
|
wx.Grid -> update the column attributes to add the
|
||||||
|
|||||||
@@ -95,6 +95,13 @@ def run():
|
|||||||
GRID_VALUE_DATETIME = "datetime"
|
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'))
|
module.insertItem(0, etgtools.TypedefDef(type='wxWindow', name='wxGridWindow'))
|
||||||
|
|
||||||
#-----------------------------------------------------------------
|
#-----------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user