schrodinger.application.models.gui.form_widgets module¶
- class schrodinger.application.models.gui.form_widgets.Section(*args, title_text: str | None = None, content_widget: PyQt6.QtWidgets.QWidget | None = None, **kwargs)¶
Bases:
BaseWidgetBase class for sections in the definition creator GUI. Provides a title and content layout for all sections.
- __init__(*args, title_text: str | None = None, content_widget: PyQt6.QtWidgets.QWidget | None = None, **kwargs)¶
- 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.
- titleText() str¶
- setTitleText(text: str) None¶
- contentWidget() PyQt6.QtWidgets.QWidget | None¶
- setContentWidget(content_widget: QWidget) None¶
- Default = 'default'¶
- Panel = 'panel'¶