Exemple #1
0
class BadDelete(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_badDelete()
		self.ui.setupUi(self)

	# If the OK button is pressed, close the dialog
	def on_okbutton_released(self):
		if __name__ == "__main__":
			sys.exit()
		else:
			self.close()
Exemple #2
0
	def __init__(self):
		# Setup the PyQt window
		QtGui.QDialog.__init__(self)
		self.ui = Ui_badDelete()
		self.ui.setupUi(self)