Przemys3aw Gawroqski wrote:
I have a question, on how to display a dialog at the startup of my App.
I hava a wxFrame of my app, with menu etc. and I want it do display a dialog
(like project selection, or a creation of a new one). This dialog should apear
after the wxFrame is displayed but before it alows any events.
At the end of your wxFrame's __init__(), use wxCallAfter() to call a ProjectSelection() (or some such) method. That method can then display your modal dialog and react properly once it's closed. By using wxCallAfter(), you're allowing all of the initialization and display of your application to complete, and as soon as that's done your method will be called.
Jeff Shannon
Technician/Programmer
Credit International