The `exec_` function in the PyQt4.QtGui.QDialog class is used to display the dialog box and block the execution of any further code until the dialog is closed by the user. This function is typically used in modal dialogs, where the program waits for user input before continuing execution. Once the dialog is closed, the function returns an integer value to indicate the result of the dialog (e.g., the button that was clicked or the action that was taken).
Python QDialog.exec_ - 59 examples found. These are the top rated real world Python examples of PyQt4.QtGui.QDialog.exec_ extracted from open source projects. You can rate examples to help us improve the quality of examples.