+ wx._StdWindowCallbacks(self)
+ wx._checkForCallback(self, 'OnSelectCell', wxEVT_GRID_SELECT_CELL)
+ wx._checkForCallback(self, 'OnCreateCell', wxEVT_GRID_CREATE_CELL)
+ wx._checkForCallback(self, 'OnChangeLabels', wxEVT_GRID_CHANGE_LABELS)
+ wx._checkForCallback(self, 'OnChangeSelectionLabel', wxEVT_GRID_CHANGE_SEL_LABEL)
+ wx._checkForCallback(self, 'OnCellChange', wxEVT_GRID_CELL_CHANGE)
+ wx._checkForCallback(self, 'OnCellLeftClick', wxEVT_GRID_CELL_LCLICK)
+ wx._checkForCallback(self, 'OnCellRightClick', wxEVT_GRID_CELL_RCLICK)
+ wx._checkForCallback(self, 'OnLabelLeftClick', wxEVT_GRID_LABEL_LCLICK)
+ wx._checkForCallback(self, 'OnLabelRightClick', wxEVT_GRID_LABEL_RCLICK)
+
+
+
+
+class wxGridEventPtr(wxEventPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __setattr__(self,name,value):
+ if name == "m_row" :
+ windows2c.wxGridEvent_m_row_set(self.this,value)
+ return
+ if name == "m_col" :
+ windows2c.wxGridEvent_m_col_set(self.this,value)
+ return
+ if name == "m_x" :
+ windows2c.wxGridEvent_m_x_set(self.this,value)
+ return
+ if name == "m_y" :
+ windows2c.wxGridEvent_m_y_set(self.this,value)
+ return
+ if name == "m_control" :
+ windows2c.wxGridEvent_m_control_set(self.this,value)
+ return
+ if name == "m_shift" :
+ windows2c.wxGridEvent_m_shift_set(self.this,value)
+ return
+ if name == "m_cell" :
+ windows2c.wxGridEvent_m_cell_set(self.this,value.this)
+ return
+ self.__dict__[name] = value
+ def __getattr__(self,name):
+ if name == "m_row" :
+ return windows2c.wxGridEvent_m_row_get(self.this)
+ if name == "m_col" :
+ return windows2c.wxGridEvent_m_col_get(self.this)
+ if name == "m_x" :
+ return windows2c.wxGridEvent_m_x_get(self.this)
+ if name == "m_y" :
+ return windows2c.wxGridEvent_m_y_get(self.this)
+ if name == "m_control" :
+ return windows2c.wxGridEvent_m_control_get(self.this)
+ if name == "m_shift" :
+ return windows2c.wxGridEvent_m_shift_get(self.this)
+ if name == "m_cell" :
+ return wxGridCellPtr(windows2c.wxGridEvent_m_cell_get(self.this))
+ raise AttributeError,name
+ def __repr__(self):
+ return "<C wxGridEvent instance>"
+class wxGridEvent(wxGridEventPtr):
+ def __init__(self,this):
+ self.this = this