[wxPython] Memory leak in grid demo...

I've simplified the SimpleGrid.py demo to the following:

from wxPython.wx import *
from wxPython.grid import *

class MyGrid(wxGrid):
    def __init__(self, parent, content):
        wxGrid.__init__(self, parent, -1)
        self.CreateGrid(len(content), len(content[0]))
            
        for x in range(len(content[0])):
            for y in range(len(content)):
                self.SetCellValue(y,x, str(content[y][x]))
                
data = [
        [1,2,3,4,5],
        [6,7,8,9,10],
        [11,12,13,14,15]
        ]
    
class MyApp(wxApp):
    def OnInit(self):
        frame = wxFrame(NULL, -1, "Hello World", size=(500,400))
        grid = MyGrid(frame, data)

        frame.Show(true)
        self.SetTopWindow(frame)
        return true
        
if __name__ == "__main__":
    app = MyApp(0)
    app.MainLoop()
        
And when I run it I get the following message:

F:\wx>python grid.py
5:12:33 PM: There were memory leaks.
5:12:33 PM: ----- Memory dump -----
5:12:33 PM: wxEvtHandler at $12E9BA0, size 48
5:12:33 PM:
5:12:33 PM:
5:12:33 PM: ----- Memory statistics -----
5:12:33 PM: 1 objects of class wxEvtHandler, total size 48
5:12:33 PM:
5:12:33 PM: Number of object items: 1
5:12:33 PM: Number of non-object items: 0
5:12:33 PM: Total allocated size: 48
5:12:33 PM:
5:12:33 PM:

(I get the same message when running the SimpleGrid demo by itself). Any
idea what I need to do to get rid of it?

-- bjorn

And when I run it I get the following message:

F:\wx>python grid.py
5:12:33 PM: There were memory leaks.
5:12:33 PM: ----- Memory dump -----
5:12:33 PM: wxEvtHandler at $12E9BA0, size 48

This is known and is internal to either the wxGrid itself or the python
wrappers. (I havn't isolated it yet.) You can safely ignore it unless your
program creates an endless number of grids :wink:

···

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