I am working on some software for the company that I work for. I am using wx for the GUI. I basically have this: When the program is busy or loading, I create a wx.BusyInfo object. But, sometimes, while this busy info box is still visible, and I need to print an error message to the user, but that MessageDialog actually is popping up underneath the BusyInfo box. Why? Is there a way to make the error show on top of the BusyInfo? I tried the wx.STAY_ON_TOP option, and it did not work.
I need it to work this way because, my classes are getting convoluted, and I don't want to have to delete the BusyInfo, show the error, then recreate the BusyInfo; it would be easier for my code, to just have the MessageDialog error show on top of the BusyInfo box.
Thanks.
Here is some sample code for what I am trying to do:
# myWindow is the main Window or Frame
wx.BusyInfo("Loading, please wait ...", myWindow)
wx.MessageDialog(myWindow, "Error message", "Error!", style = wx.OK | wx.ICON_EXCLAMATION | wx.STAY_ON_TOP)