Hi seaba,
If you give wx.ProgressDialog option parent=..., the “going to the background” won’t occur.
parent=...
See also: