spinetoolbox.widgets.options_dialog

Provides OptionsDialog.

Module Contents

Classes

OptionsDialog

A dialog with options.

class spinetoolbox.widgets.options_dialog.OptionsDialog(parent, title, text, option_to_answer, notes=None, preferred=None)[source]

Bases: PySide6.QtWidgets.QDialog

A dialog with options.

Parameters
  • parent (QWidget) – the parent widget

  • title (srt) – title of the window

  • text (str) – text to show to the user

  • option_to_answer (dict) – mapping option string to corresponding answer to return

  • preferred (int,optional) – preselected option if any

classmethod get_answer(parent, title, text, option_to_answer, notes=None, preferred=None)[source]
_update_ok_button_enabled(_id=None)[source]