]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/GridCustEditor.py
'[1219035] cleanup: miscellaneous' and minor source cleaning.
[wxWidgets.git] / wxPython / demo / GridCustEditor.py
index 55a8f9a410a1fc13b4c06d8b7eb1ca086f5f2dd5..639b3fffebb1d0d079d60ec86bcdd041cec0f73b 100644 (file)
@@ -125,9 +125,10 @@ class MyCellEditor(gridlib.PyGridCellEditor):
         """
         self.log.write("MyCellEditor: IsAcceptedKey: %d\n" % (evt.GetKeyCode()))
 
-        ## Oops, there's a bug here, we'll have to do it ourself..
-        ##return self.base_IsAcceptedKey(evt)
+        ## We can ask the base class to do it
+        #return self.base_IsAcceptedKey(evt)
 
+        # or do it ourselves
         return (not (evt.ControlDown() or evt.AltDown()) and
                 evt.GetKeyCode() != wx.WXK_SHIFT)