spyder.api.widgets.dialogs#
Spyder dialog widgets.
Classes
|
Action button section (OK, Cancel, etc) widget for dialog boxes. |
- class spyder.api.widgets.dialogs.SpyderDialogButtonBox(
- buttons: StandardButton | None = None,
- orientation: Orientation = 1,
- parent: QWidget | None = None,
Bases:
QDialogButtonBoxAction button section (OK, Cancel, etc) widget for dialog boxes.
- __init__(
- buttons: StandardButton | None = None,
- orientation: Orientation = 1,
- parent: QWidget | None = None,
Create a new group of dialog box buttons.
- Parameters:
buttons (StandardButton | None, optional) – The standard buttons to include in the dialog box button group, such as “OK”, “Cancel” or “Apply”, passed as a single argument composed of Qt enum members bitwise or-ed (
|) together. For example,QDialogButtonBox.Ok | QDialogButtonBox.Cancel. IfNone, the default, is an empty button box with no buttons.orientation (Orientation, optional) – Whether the button box is laid out horizontally, with buttons side by side, or vertically, with buttons on top of one another. By default, horizontal (
Qt.Horizontal).parent (QWidget | None, optional) – The parent widget of this button box,
Noneby default.
- Return type:
None