[wxPython] Re: wxListCtrl on a Panel

This is my first 'solution' post, so here goes...

This is how I would do your test1.py:

from wxPython.wx import *

class myApp(wxApp):
    def OnInit(self):
        topFrame = myTopFrame(NULL)
        self.SetTopWindow(topFrame) # set topFrame
to be top-level window
        self.topFrame.Show(TRUE)

class myTopFrame(wxFrame):
    def __init__(self, parent):
        wxFrame.__init__(self, parent, -1,
                         wxDefaultPosition,
                         wxSize(800, 600))

···

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.