]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/sheet.py
compilation fix after removing wxImage(wxImage *) ctor
[wxWidgets.git] / wxPython / wx / lib / sheet.py
index 43a2e61f08d5062725bff1782ad100dfb740c7d0..e177a3a35e96d8b2e3bd97b74da13200f8db468a 100644 (file)
@@ -64,16 +64,20 @@ class CCellEditor(wx.grid.PyGridCellEditor):
     def Show(self, show, attr):
         """ Show or hide the edit control.  Use the attr (if not None)
             to set colors or fonts for the control.
+            NOTE: There is no need to everride this if you don't need
+                  to do something out of the ordinary.
         """
-        self.base_Show(show, attr)
+        super(CCellEditor, self).Show(show, attr)
 
     def PaintBackground(self, rect, attr):
         """ Draws the part of the cell not occupied by the edit control.  The
             base class version just fills it with background colour from the
             attribute.
+            NOTE: There is no need to everride this if you don't need
+                  to do something out of the ordinary.
         """
         # Call base class method.
-        self.base_PaintBackground(self, rect, attr)
+        super(CCellEditor, self).PaintBackground(self, rect, attr)
 
     def BeginEdit(self, row, col, grid):
         """ Fetch the value from the table and prepare edit control to begin editing.
@@ -146,8 +150,11 @@ class CCellEditor(wx.grid.PyGridCellEditor):
         pass
 
     def Destroy(self):
-        """ Final cleanup """
-        self.base_Destroy()
+        """ Final cleanup
+            NOTE: There is no need to everride this if you don't need
+                  to do something out of the ordinary.
+        """
+        super(CCellEditor, self).Destroy()
 
     def Clone(self):
         """ Create a new object which is the copy of this one. Must Override. """