[wxPython] WxPython crashed after install

thanks for replying

What is MyApp doing in it's OnInit? Can you tell (by using print
statements) where it is crashing at?

That's my OnInit function, not even the first statement is executed,
seems it does not even go into:

class MyApp(wxApp):

    # wxWindows calls this method to initialize the application
    def OnInit(self):

        print 'in OnInit()' ### doesn't print this!! ###

        # Create an instance of our customized Frame class
        frame = MyFrame(NULL, -1, "This is a test")
        print 'af myframe'
        frame.Show(true)

        # Tell wxWindows that this is our main window
        self.SetTopWindow(frame)

        # Return a success flag
        return true

Can I supply any more information?
Sorry, I'm very new to wxPython

Karl

Karl Scalet wrote:

That's my OnInit function, not even the first statement is executed,
seems it does not even go into:

class MyApp(wxApp):

    # wxWindows calls this method to initialize the application
    def OnInit(self):

        print 'in OnInit()' ### doesn't print this!! ###

I'd try a:
import sys

and

sys.stdout.flush()

right after the print statement, just to make sure you see it.

Just a guess...

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Can I supply any more information?

You said there was a core file, right? If so then please load it into the
debugger and do a backtrace:

    gdb /usr/bin/python
    cd /path/to/corefile
    core core
    bt

···

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