]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/grids.py
Fix "warning: operation on 'y' may be undefined".
[wxWidgets.git] / wxPython / wx / lib / grids.py
index cbd82f4316c0cdb448a3d3a3b52c10158145b55b..5adfc20fce1fe5fdec500c1d142efba663554f1d 100644 (file)
@@ -199,9 +199,9 @@ class PyGridSizer(wx.PySizer):
 
 
 
 
 
 
-class PyFlexGridSizer(wxGridSizer):
+class PyFlexGridSizer(PyGridSizer):
     def __init__(self, rows=0, cols=0, hgap=0, vgap=0):
     def __init__(self, rows=0, cols=0, hgap=0, vgap=0):
-        wxGridSizer.__init__(self, rows, cols, hgap, vgap)
+        PyGridSizer.__init__(self, rows, cols, hgap, vgap)
         self.rowHeights = []
         self.colWidths  = []
         self.growableRows = []
         self.rowHeights = []
         self.colWidths  = []
         self.growableRows = []