class BadEmail(QtGui.QDialog): """ This class is used for the popup to tell users they have entered an invalid e-mail address. """ def __init__(self): # Setup the PyQt window QtGui.QDialog.__init__(self) self.ui = Ui_EmailFormatPopup() self.ui.setupUi(self) # If the OK button is pressed, close the dialog @QtCore.pyqtSignature("") def on_okbutton_clicked(self, checked=None): self.close()
def __init__(self): # Setup the PyQt window QtGui.QDialog.__init__(self) self.ui = Ui_EmailFormatPopup() self.ui.setupUi(self)