Portability issue, OS X, wx.FileDialog

I’m having a problem where a dialog runs successfully in my application under Windows, but briefly pops up and exits immediately on OS X. I’d appreciate some help. Using Python 2.7.6 and wxPython 3.0.0.0 (32-bit on Windows, Cocoa on OS X).

https://bitbucket.org/theshad0w/renpedit

To try, launch flowchartbuilder.py . The dialog in question is in flowchart_app.initialize_from_menu(), line 424.

Found this problem was posted earlier… https://groups.google.com/forum/#!topic/wxpython-users/3z0pvPHAGt0 …with no resolution. Can someone suggest a fix please?

Fixed the problem by moving the dialog to another fuction (start) and caling it in OnInit with wx.CallLater(10,self.start)

Bug should be fixed, though.