spinetoolbox.widgets.options_dialog
Provides OptionsDialog.
Module Contents
Classes
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