コード例 #1
0
ファイル: BadDelete.py プロジェクト: Tawmu/PyTasker
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()
コード例 #2
0
ファイル: BadDelete.py プロジェクト: Tawmu/PyTasker
	def __init__(self):
		# Setup the PyQt window
		QtGui.QDialog.__init__(self)
		self.ui = Ui_badDelete()
		self.ui.setupUi(self)