]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/GridSimple.py
don't log mouse events by default
[wxWidgets.git] / wxPython / demo / GridSimple.py
index 7a135bd9e34858644a3444dab7d74b526560eb70..c073d48932d4783ca10368c23229e7b912e42e83 100644 (file)
@@ -4,10 +4,10 @@ from wxPython.lib.mixins.grid import wxGridAutoEditMixin
 
 #---------------------------------------------------------------------------
 
 
 #---------------------------------------------------------------------------
 
-class SimpleGrid(wxGrid, wxGridAutoEditMixin):
+class SimpleGrid(wxGrid): ##, wxGridAutoEditMixin):
     def __init__(self, parent, log):
         wxGrid.__init__(self, parent, -1)
     def __init__(self, parent, log):
         wxGrid.__init__(self, parent, -1)
-        wxGridAutoEditMixin.__init__(self)
+        ##wxGridAutoEditMixin.__init__(self)
         self.log = log
         self.moveTo = None
 
         self.log = log
         self.moveTo = None
 
@@ -71,6 +71,7 @@ class SimpleGrid(wxGrid, wxGridAutoEditMixin):
         EVT_GRID_EDITOR_CREATED(self, self.OnEditorCreated)
 
 
         EVT_GRID_EDITOR_CREATED(self, self.OnEditorCreated)
 
 
+
     def OnCellLeftClick(self, evt):
         self.log.write("OnCellLeftClick: (%d,%d) %s\n" %
                        (evt.GetRow(), evt.GetCol(), evt.GetPosition()))
     def OnCellLeftClick(self, evt):
         self.log.write("OnCellLeftClick: (%d,%d) %s\n" %
                        (evt.GetRow(), evt.GetCol(), evt.GetPosition()))