[wxPython] wxDialog and Show

I've got a dialog with a number of static text and text control fields. In
my app I'm telling the dialog to Show() itself and then I'm immediately
stuffing values into its text control fields derived from my algorithm.
Unfortunately, the static text in my dialog is only ever displayed when my
algorithm is finished, and right before I call Destroy(). How do I force
the dialog to Show() itself in its entirety before the algorithm starts?

Thanks and best regards to all!,

Steve Thompson
Steve_Thompson@maxtor.com

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

I've got a dialog with a number of static text and text control fields.

In

my app I'm telling the dialog to Show() itself and then I'm immediately
stuffing values into its text control fields derived from my algorithm.
Unfortunately, the static text in my dialog is only ever displayed when my
algorithm is finished, and right before I call Destroy(). How do I force
the dialog to Show() itself in its entirety before the algorithm starts?

Does your program return to the event loop after calling Show or do you go
immediately to your algorithm? If the latter then you can try calling
wxYield before calling your algorithm and periodically during it so other
event handlers (like paint events for the static texts) have a chance to
run. Another option is to move your algorithm to a separate thread and let
the main thread go back immediately to the event loop.

···

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

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users