The following program always crashes for me in Windows 2000 using Python 2.4 and wxPython 2.6.1.0 (ANSI):
import wx
app = wx.PySimpleApp()
frame = wx.Frame(None, -1)
frame.Show()
dlg = wx.FileDialog(frame, "Load file", ".", style=wx.OPEN)
dlg.CentreOnParent() # !! CRASH !!
dlg.ShowModal()
It works fine under wxGTK 2.6.1.0. The error message says "The instruction in '0x00c267c5' points to memory in '0x00000000'. The procedure 'written' could not be executed." The wxFileDialog itself works fine, but the CentreOnParent() does not. CentreOnParent works fine for other dialogs, though; e.g. if you replace the wx.FileDialog instantiation with "dlg = wx.Dialog(frame, -1)", the CentreOnParent() works fine.
Markus