Problem with inheritance of the grid

Hi,
I have a little problem:

"""
class wxFrame1(wxFrame, LogicaMvc.Observer):
...
  def __init__(self, parent):
...
      self.gridEnSa = GridTipos(self) #User Ctrl
...

class GridTipos(wxGrid):
    def __init__(self, madreVentana):
        wxGrid.__init__(self, parent=madreVentana,
        pos=wxPoint(80, 304), size=wxSize(360, 100), style=0)

"""

Here is the error code:
17:45:31: Debug: e:\projects\wx\src\msw\app.cpp(439): 'UnregisterClass(canvas)' failed with error 0x00000584 (la clase todav�a tiene ventanas abiertas.).

ThanX,

···

--
Lo�c

_________________________________________________________________

Lo?c Ledouble wrote:

Hi,
I have a little problem:

"""
class wxFrame1(wxFrame, LogicaMvc.Observer):
...
def __init__(self, parent):
...
     self.gridEnSa = GridTipos(self) #User Ctrl
...

class GridTipos(wxGrid):
   def __init__(self, madreVentana):
       wxGrid.__init__(self, parent=madreVentana,
       pos=wxPoint(80, 304), size=wxSize(360, 100), style=0)

"""

Here is the error code:
17:45:31: Debug: e:\projects\wx\src\msw\app.cpp(439): 'UnregisterClass(canvas)' failed with error 0x00000584 (la clase todavía tiene ventanas abiertas.).

This happens when the app exits without fully cleaning up after itself, usually because of some unhandled exception durring construction of the app or initial frames. There is probably a traceback somewhere that will help you track it down.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!