PythonQt.QtGui.QDialogButtonBox · declarations 001
Back to PythonQt.QtGui.QDialogButtonBox
Abort
instance-attribute
Abort: Any
AcceptRole
instance-attribute
AcceptRole: Any
ActionRole
instance-attribute
ActionRole: Any
Apply
instance-attribute
Apply: Any
ApplyRole
instance-attribute
ApplyRole: Any
ButtonLayout
instance-attribute
ButtonLayout: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
ButtonRole
instance-attribute
ButtonRole: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
Cancel
instance-attribute
Cancel: Any
DestructiveRole
instance-attribute
DestructiveRole: Any
Discard
instance-attribute
Discard: Any
FirstButton
instance-attribute
FirstButton: Any
GnomeLayout
instance-attribute
GnomeLayout: Any
Help
instance-attribute
Help: Any
HelpRole
instance-attribute
HelpRole: Any
Ignore
instance-attribute
Ignore: Any
InvalidRole
instance-attribute
InvalidRole: Any
KdeLayout
instance-attribute
KdeLayout: Any
LastButton
instance-attribute
LastButton: Any
MacLayout
instance-attribute
MacLayout: Any
NRoles
instance-attribute
NRoles: Any
No
instance-attribute
No: Any
NoToAll
instance-attribute
NoToAll: Any
RejectRole
instance-attribute
RejectRole: Any
Reset
instance-attribute
Reset: Any
ResetRole
instance-attribute
ResetRole: Any
RestoreDefaults
instance-attribute
RestoreDefaults: Any
Retry
instance-attribute
Retry: Any
Save
instance-attribute
Save: Any
SaveAll
instance-attribute
SaveAll: Any
StandardButton
instance-attribute
StandardButton: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
StandardButtons
instance-attribute
StandardButtons: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
WinLayout
instance-attribute
WinLayout: Any
Yes
instance-attribute
Yes: Any
YesRole
instance-attribute
YesRole: Any
YesToAll
instance-attribute
YesToAll: Any
accepted
accepted(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QDialogButtonBox.accepted; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QDialogButtonBox::accepted()
This signal is emitted when a button inside the button box is clicked, as long as it was defined with the AcceptRole or YesRole.
See also rejected(), clicked(), and helpRequested().
Source: https://doc.qt.io/archives/qt-5.15/qdialogbuttonbox.html#accepted
addButton
addButton(button: Any, role: Any) -> Any
X.addButton(button, role)
Supplemental documentation: Qt 5 reference:
void QDialogButtonBox::addButton(QAbstractButton *button, QDialogButtonBox::ButtonRole role)
Adds the given button to the button box with the specified role. If the role is invalid, the button is not added.
If the button has already been added, it is removed and added again with the new role.
Note: The button box takes ownership of the button.
See also removeButton() and clear().
QPushButton *QDialogButtonBox::addButton(const QString \&text, QDialogButtonBox::ButtonRole role)
Creates a push button with the given text, adds it to the button box for the specified role, and returns the corresponding push button. If role is invalid, no button is created, and zero is returned.
See also removeButton() and clear().
QPushButton *QDialogButtonBox::addButton(QDialogButtonBox::StandardButton button)
Adds a standard button to the button box if it is valid to do so, and returns a push button. If button is invalid, it is not added to the button box, and zero is returned.
See also removeButton() and clear().
Upstream PySide2 reference signatures (binding differences may apply):
addButton(self, button: PySide2.QtWidgets.QAbstractButton, role: PySide2.QtWidgets.QDialogButtonBox.ButtonRole) -> None
addButton(self, button: PySide2.QtWidgets.QDialogButtonBox.StandardButton) -> PySide2.QtWidgets.QPushButton
addButton(self, text: str, role: PySide2.QtWidgets.QDialogButtonBox.ButtonRole) -> PySide2.QtWidgets.QPushButton
Source: https://doc.qt.io/archives/qt-5.15/qdialogbuttonbox.html#addButton
button
button(which: Any) -> Any
X.button(which) -> PythonQt.QtGui.QPushButton
Supplemental documentation: Qt 5 reference:
QPushButton *QDialogButtonBox::button(QDialogButtonBox::StandardButton which) const
Returns the QPushButton
corresponding to the standard button which, or nullptr if the standard button
doesn't exist in this button box.
See also standardButton(), standardButtons(), and buttons().
Upstream PySide2 reference signatures (binding differences may apply):
button(self, which: PySide2.QtWidgets.QDialogButtonBox.StandardButton) -> PySide2.QtWidgets.QPushButton
Source: https://doc.qt.io/archives/qt-5.15/qdialogbuttonbox.html#button
buttonRole
buttonRole(button: Any) -> Any
X.buttonRole(button)
Supplemental documentation: Qt 5 reference:
QDialogButtonBox::ButtonRole QDialogButtonBox::buttonRole(QAbstractButton *button) const
Returns the button role for the specified button. This function returns
InvalidRole
if button is nullptr or has not been added to the button box.
See also buttons() and addButton().
Upstream PySide2 reference signatures (binding differences may apply):
buttonRole(self, button: PySide2.QtWidgets.QAbstractButton) -> PySide2.QtWidgets.QDialogButtonBox.ButtonRole
Source: https://doc.qt.io/archives/qt-5.15/qdialogbuttonbox.html#buttonRole
buttons
buttons() -> tuple
X.buttons() -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QAbstractButton *> QDialogButtonBox::buttons() const
Returns a list of all the buttons that have been added to the button box.
See also buttonRole(), addButton(), and removeButton().
Upstream PySide2 reference signatures (binding differences may apply):
buttons(self) -> typing.List[PySide2.QtWidgets.QAbstractButton]
Source: https://doc.qt.io/archives/qt-5.15/qdialogbuttonbox.html#buttons