Why is python shutting down?

Hello,

Use python 2.5 for now.

Search the list archives if you need more explanation as to why.

···

On Apr 1, 2009, at 4:30 PM, Timothy W. Grove wrote:

I've been struggling with a mystery problem as to why the following code causes Python to crash: (It started out larger, but I whittled it down to about as small an app as it gets.)

>> import wx
>> app = wx.PySimpleApp()
>> f = wx.Frame(None, -1, "Whats goin' on?!!")
>> p = wx.Panel(f)
>> f.Show()
>> app.MainLoop()

This simply displays a frame containing a panel and it starts okay. I can resize the frame and drag it around, but just as soon as the cursor enters the window area, I get an error dialog telling me that python.exe has stopped working. (I'm sure you know the one I mean?!! And Windows offer to check online for a solution to the problem doesn't return any answers ... ) I get this problem both when I'm running it from SPE and when I run it as a standalone program, but when I run it from IDLE, things seem okay. It also runs okay on another WinXP machine, but I haven't checked the python and wxpython versions for that PC. I'm using a Toshiba Satellite Pro with the following configuration:

- platform : win32 (Vista)
- python : 2.6.1
- wxPython : 2.8.9.2

I'm guessing its more a compatibility or conflict on my own machine, but I really don't know where to look. I have tried reinstalling both Python and wxPython to no avail. If anyone has some clue to what is going on I would love to hear about it. Thanks!

Best regards,
Timothy Grove

P.S. The Windows 'Problem Signature' reads as follows:

Problem signature:
Problem Event Name: APPCRASH
Application Name: python.exe
Application Version: 0.0.0.0
Application Timestamp: 4937fccd
Fault Module Name: comctl32.dll_unloaded
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4791a629
Exception Code: c0000005
Exception Offset: 73975a6e
OS Version: 6.0.6001.2.1.0.256.6
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users