Hello,<div><br></div><div>I am new to Python and I'm working with a UI that has a dialog button box with 'OK' and 'Cancel' standard buttons. I want to check if the 'OK' button has been pressed, but I can't use isDown or isChecked for example because it throws an attribute error:</div>

<div><br></div><div>AttributeError: 'StandardButton' object has no attribute 'isDown'</div><div><br></div><div>Is this because the StandardButton type does not inherit from the QPushButton and QAbstractButton classes? How would I perform the check with the a StandardButton object?</div>

<div><br></div><div>Thanks,</div><div><br><div>Kashif Umer<br><br>
</div></div>