The QFlags binding doesn't have them. But QDialogButton has them.
So you can use
pya.QDialogButtonBox.Ok
to get the constant like you would do in C++. The only difference is that Python doesn't have templates. So C++ QFlags<QDialogButtonBox::StandardButton> is Python's QDialogButtonBox.QFlags_StandardButton.
Comments
The QFlags binding doesn't have them. But QDialogButton has them.
So you can use
to get the constant like you would do in C++. The only difference is that Python doesn't have templates. So C++
QFlags<QDialogButtonBox::StandardButton>
is Python'sQDialogButtonBox.QFlags_StandardButton
.Matthias
Hi, Matthias!
Thank you for explanations!