eye.widgets.dialog module¶
- class eye.widgets.dialog.Dialog(**kwargs)[source]¶
Bases:
QDialog
,CategoryMixin
Basic dialog showing one widget and a set of buttons
By default, the dialog has the “Ok” and “Cancel” buttons, which trigger the accept and reject slots. Instances of this class have the ‘dialog’ category by default.
- buttonBox = <Mock object>¶
QDialogButtonBox instance of buttons to show on this dialog
- eye.widgets.dialog.openDialog(widget, parent=None, modal=True)[source]¶
Open a Dialog showing a widget
Create and show a
Dialog
. The dialog will contain widget.- Parameters:
widget – the widget to show in the dialog
parent – the parent of the dialog, if any
modal – whether the dialog should be modal
- Returns:
the new dialog
- Return type: