schrodinger.application.models.gui.experimental_px.messagebox module¶
- class schrodinger.application.models.gui.experimental_px.messagebox.ErrorDialog(parent=None, text='', title='Error')¶
Bases:
BaseDialogA panelx-styled error dialog with an error icon, message, and OK button.
- __init__(parent=None, text='', title='Error')¶
- initSetUp()¶
Creates widget from
uiand stores itui_widget.Suggested subclass use: create and initialize subwidgets, and connect signals.
- initLayOut()¶
Create a vertical layout for the widget (
widget_layout) and populate it with two vertical sub-layouts:main_layoutandbottom_layout.If the user has specified the
uidata member, insert the resultantui_widgetintomain_layout.If the widget already has a layout defined, this method will produce a warning (but not a traceback).
main_layoutandbottom_layoutwill be inserted into the existing widget layout, which will not be the same aswidget_layout. It is therefore recommended that this mixin is used only with widgets that do not already have a layout.Suggested subclass use: create, initialize, and populate layouts.
- text() str¶
Return the current message text.
- setText(text: str) None¶
Set the message text.
- detailedText() str¶
Return the current detailed text.
- setDetailedText(text: str) None¶
Set the detailed text shown in a scrollable read-only area below the main message. Useful for tracebacks or other long-form content.
- schrodinger.application.models.gui.experimental_px.messagebox.show_error(parent: QWidget, text: str, title: str = 'Error', detailed_text: str = '') None¶
Show a panelx-styled error dialog.
- Parameters:
parent – The parent widget.
text – The error message to display.
title – The dialog window title.
detailed_text – Optional detailed text (e.g. a traceback) shown in a scrollable read-only area below the main message.