Exemplo n.º 1
0
class BadTask(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_BadTask()
		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()
Exemplo n.º 2
0
	def __init__(self):
		# Setup the PyQt window
		QtGui.QDialog.__init__(self)
		self.ui = Ui_BadTask()
		self.ui.setupUi(self)