def __init__(self, categoryID):
categoryData = readCategories()[categoryID]
#
dial = QtGui.QMessageBox()
dial.setText(u"Delete selected category '{0}'?".format(categoryData[0]))
dial.setWindowTitle("Caution!")
dial.setIcon(QtGui.QMessageBox.Question)
delete = dial.addButton('Yes', QtGui.QMessageBox.AcceptRole)
dial.addButton('No', QtGui.QMessageBox.RejectRole)
dial.exec_()
if dial.clickedButton() == delete:
removeCategory(categoryID)
评论列表
文章目录