python - How can I close the active window but still run the rest of the execution statements in the function? -
python - How can I close the active window but still run the rest of the execution statements in the function? -
i have function needs work between 2 different windows. starts off working in 1 active window. want work window until call
self.close(true)
this close active window, far understand it, terminates more execution statements have within function. execution statements after close phone call (and still in same function) ones want applied newly active window.
how can accomplish this? there other close can call?
the usual way go have main wxpython programme (i.e. main window). when phone call long running process, can hide main window calling frame's hide() method. when long running process finishes, can re-show main window or instantiate secondary frame , show while keeping main window hidden. secondary frame can show output long running process.
another approach hide main frame during long running process , when process finishes, update main frame , re-show it. create different panel frame , swap out original create different frame. tutorial talks doing latter suggestion.
python wxpython
Comments
Post a Comment