spyder.api.widgets.dialogs

spyder.api.widgets.dialogs#

Spyder dialog widgets.

Classes

SpyderDialogButtonBox([buttons, ...])

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,
)[source]#

Bases: QDialogButtonBox

Action button section (OK, Cancel, etc) widget for dialog boxes.

__init__(
buttons: StandardButton | None = None,
orientation: Orientation = 1,
parent: QWidget | None = None,
)[source]#

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. If None, 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, None by default.

Return type:

None