I'm making a simple wxPython app on win32 that does a number of calls to external binaries. Everything works fine, except the GUI doesn't update well while the external process is running. This makes for an ugly window and non-updated status StaticTexts, so I'd like to fix it. Window . Update () helps some, but it still doesn't do the job. I've also tried Window . Refresh () and Window . UpdateWindowUI () and every combination of the three, but no luck. Any thoughts?
# Call process Process = subprocess . Popen ( Command_Line ) # Wait on process to complete while Process . poll () == None : # Update GUI Window . Update () # Wait a bit, don't hog the CPU time . sleep ( 0.25 )