schrodinger.ui.qt.mapperwidgets.plpmanager module¶
- class schrodinger.ui.qt.mapperwidgets.plpmanager.PLPManagerWidget(*args, spec=None, **kwargs)¶
Bases:
PLPTargetMixin,BaseWidgetA widget that maps to a ParamListParam (PLP). It contains buttons to add, delete, and reorder items in a PLP.
To customize behavior when adding to a PLP, create a subclass of this and override
_makeItem.See
python/scripts/examples/plpmanager_gui.pyfor an example of how to use this class with a PLP Table.- 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.
- initSetDefaults()¶
Set widget to its default state. If the widget uses a model/mapper, it’s preferable to reset the widget state by resetting the model.
- selectedParams() list[CompoundParam]¶
- setSelectedParams(params: list[CompoundParam])¶
- Default = 'default'¶
- Panel = 'panel'¶