I am working on python application where I have created the dialog which includes several standard buttons like: Reset, OK, Cancel, Apply. here is the relevant code for the standard button,
self.buttonBox = QtGui.QDialogButtonBox(ROI)
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Reset|QtGui.QDialogButtonBox.Apply|QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
self.buttonBox.setObjectName( ("buttonBox"))
My question is how to disable only Apply button Even I tried the following code
QtGui.QDialogButtonBox.Apply.setEnabled(False)
but getting error
AttributeError: 'StandardButton' object has no attribute 'setEnabled'
So how do I disable particular button in set of standard button