def __init__(self):
"""
A small class to display an unfinished dialog message to the user. It is made into its own class so the names
of the buttons can be renamed to be better understood in the situation it is used in
"""
QDialog.__init__(self)
self.setupUi(self)
self.button_box.button(QDialogButtonBox.Ok).setText('Close Anyway')
self.button_box.button(QDialogButtonBox.Cancel).setText('Do Not Close')
self.button_box.accepted.connect(self.accept)
self.button_box.rejected.connect(self.close)
评论列表
文章目录