【发布时间】:2016-06-23 14:06:15
【问题描述】:
我想使用QMessageBox.Question 作为图标。但我想更改标准按钮的文本。我不希望按钮的文本是“是”和“否”。我希望他们成为“Evet”和“Iptal”。这是我的代码。
choice = QtGui.QMessageBox.question(self, 'Kaydet!',
'Kaydetmek İstediğinize Emin Misiniz?',
QtGui.QMessageBox.Yes | QtGui.QMessageBox.No)
【问题讨论】:
-
实际上,现在我克服了这个问题,就像这样选择 = QtGui.QMessageBox.question(self, "Kaydet!", "Kaydetmek İstediğinize Emin Misiniz?", "Evet", button1Text='İptal', defaultButtonNumber=0, escapeButtonNumber=-1) ifchoice == 0: self.frame_11.show() else: pass
标签: python pyqt qmessagebox