schrodinger.ui.qt.forcefield.metals_forcefield_gui_dir.widgets module¶
- class schrodinger.ui.qt.forcefield.metals_forcefield_gui_dir.widgets.AnalysisStatus¶
Bases:
Enum- UNANALYZED = 'unanalyzed'¶
- ANALYZING = 'analyzing'¶
- VALID = 'valid'¶
- INVALID = 'invalid'¶
- class schrodinger.ui.qt.forcefield.metals_forcefield_gui_dir.widgets.FeedbackWidget(*args, variant: enum.StrEnum | None = None, **kwargs)¶
Bases:
BaseWidgetA widget that displays feedback text with an optional icon.
- STATE_TEXT_MAP = {<AnalysisStatus.UNANALYZED: 'unanalyzed'>: 'Analyze inputs to see if the Metals\nforce field should be used', <AnalysisStatus.ANALYZING: 'analyzing'>: 'Analysis in progress...', <AnalysisStatus.VALID: 'valid'>: 'Structure set met the criteria', <AnalysisStatus.INVALID: 'invalid'>: 'Structure set failed to meet criteria'}¶
- STYLESHEET = '\n QLabel#text_lbl {\n font-style: italic;\n }\n QLabel#text_lbl[state="unanalyzed"] {\n color: #000000;\n }\n QLabel#text_lbl[state="analyzing"] {\n color: #000000;\n }\n QLabel#text_lbl[state="valid"] {\n color: #006633;\n }\n QLabel#text_lbl[state="invalid"] {\n color: #c87c00;\n }\n '¶
- 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.
- setState(state: AnalysisStatus)¶
- Default = 'default'¶
- Panel = 'panel'¶