I've a HTML window with a button that calls a python function that loads a PyQT Dialog. My Problem is: my nice Dialog appears behind the HTML window and the user has to move the HTML window in order to use the PyQT GUI. Where should I define, and how do I define the Dialog (PyQt) to be above the HTML window? Thanks!
More information:
my python file imports: from PyQt4 import QtCore, QtGui
my HTML button calls python function using JSON. The python functions opens my Dialog:
app = QtGui.QApplication(sys.argv)
Dialog = QtGui.QDialog()
ui = Ui_Dialog()
ui.setupUi(Dialog)
Dialog.setModal(True)
Dialog.show()
Dialog.raise_()
app.exec_()
Clicking the HTML button that located in my HTML page, opens my DIALOG, but, the DIALOG appears behind the HTML page.
Please let me know what is the missing information I should add to my Q. Thank you :) Dolphinet