Currently, I'm building a web automation app on Chrome to help me automate some tasks. And in the process of running, if the program encountered errors or finished the work, it would show errors messages or notification. To to that I'm using QmessageBox. But here arises a problem that when I 'm running app and I switch to do some orther works (Ex: watch a movie, ...), the pop up doesn't show on main window and seems to be hidden. And I have to minimize the main window to see it. So I want to find a solution likes options of QmessageBox or something to show pop up on main window. Thank for your helps.
And here is my code
def message(title, info, icon_path='ac_solution.ico'):
message_box = QtGui.QMessageBox()
message_box.setText(info)
message_box.setWindowTitle(title)
message_box.setWindowIcon(QtGui.QIcon(icon_path))
message_box.setIconPixmap(QtGui.QPixmap(icon_path))
message_box.exec_()