mantidimaging.gui.mvp_base.view module#

class mantidimaging.gui.mvp_base.view.BaseDialogView(parent, ui_file=None)[source]#

Bases: QDialog

show_error_dialog(msg='') None[source]#

Shows an error message.

Parameters:

msg – Error message string

class mantidimaging.gui.mvp_base.view.BaseMainWindowView(parent, ui_file=None)[source]#

Bases: QMainWindow

cleanup() None[source]#

Runs when the window is closed.

closeEvent(self, a0: Optional[QCloseEvent])[source]#
showEvent(self, a0: Optional[QShowEvent])[source]#
show_error_dialog(msg: str) None[source]#
show_info_dialog(msg: str) None[source]#
show_question_dialog(title: str, msg: str) bool[source]#

Shows a question dialog box. Returns true if the user selects “OK”, false otherwise.

Parameters:
  • title – The title of the question dialog.

  • msg – The message to show.

Returns:

True if the user selects “OK”, false otherwise.

show_warning_dialog(msg: str) None[source]#
class mantidimaging.gui.mvp_base.view.BaseWidget(parent, ui_file=None)[source]#

Bases: QWidget