schrodinger.application.livedesign.ld_export_gui module¶
- class schrodinger.application.livedesign.ld_export_gui.ExportPanelWizard¶
Bases:
MultiPanelWizard- __init__()¶
- setup()¶
If subclassing, override this method to add logic to be run during initialization, such as adding wizard panels.
- setDefaultCheckedItems(item_strs: List[str])¶
Specify which LD data items will be checked by default when the main panel is opened.
- Parameters:
item_strs – string representations of the desired checked data item. In most cases, this is the structure property name.
- run(*args, **kwargs)¶
Run the wizard.
- onWizardFinish()¶
Reset the wizard state on user exit.
- class schrodinger.application.livedesign.ld_export_gui.ExportSetupPanel(*args, **kwargs)¶
Bases:
LDExportPanelMixin,MapperMixin,BaseWizardPanel- model_class¶
alias of
ExportModel
- ui_module = <module 'schrodinger.application.livedesign.export_setup_ui' from '/scr/buildbot/builds/build/internal/lib/python3.11/site-packages/schrodinger/application/livedesign/export_setup_ui.py'>¶
- TITLE_BASE = 'Maestro to LiveDesign Export'¶
- initSetOptions()¶
Suggested subclass use: set instance variables, excluding layouts and subwidgets. Also use here to (optionally) apply the legacy stylesheet spacing settings (PANEL-19101).
- initSetUp()¶
Creates widget from
uiand stores itui_widget.Suggested subclass use: create and initialize subwidgets, and connect signals.
- initLayOut()¶
@overrides: widgetmixins.InitMixin
- initSetDefaults()¶
Override
mappers.MapperMixinto avoid resetting the entire model.
- show()¶
Override the show method to clear and previous value of self.accepted
- close(self) bool¶
- adjustCombos()¶
Adjusts combo boxes to appear the same length
- defineMappings()¶
Override this in the subclass to define mappings. Should return a list of tuples [(<target>, <param>)]. Targets can be:
a basic widget, like
QLineEditorQComboBoxa custom object that inherits
MapperMixinorTargetMixina
TargetSpecinstancea slot
For common widgets, standard signals and getter/setter methods will be used, as defined in
mappers._get_default_access_names().For more fine-grained custom control, instantiate a
TargetSpecobject, which allows custom setters, getters, and signals to be specified.Supplying a slot as the first element of the tuple is equivalent to providing
TargetSpec(slot=my_slot).Note that all target slots are triggered on
setModel()as well as in response to the specified signal.The param is an abstract param reference, e.g. MyModel.my_param.
Example:
def defineMappings(self): combo = self.style_combo return [(self.name_le, MyModel.name), (TargetSpec(combo, getter=combo.currentText, setter=combo.setCurrentText), MyModel.style), (self.coord_widget, MyModel.coord), (self._onASLTextChanged, MyModel.asl_text)]
- processNext()¶
Evaluates whether to proceed to the next panel. Called when “Next” is clicked.
See
wizards.BaseWizardPanelfor further documentation.- Returns:
whether to proceed to the next panel as requested
- Return type:
bool or NoneType
- Default = 'default'¶
- Panel = 'panel'¶
- class schrodinger.application.livedesign.ld_export_gui.ExportMainPanel(*args, **kwargs)¶
Bases:
LDExportSettingsMixin,AbstractExportPanel- TITLE_BASE = 'Maestro to LiveDesign Export'¶
- PREF_GROUP = 'ExportMainPanel'¶
- initSetOptions()¶
Suggested subclass use: set instance variables, excluding layouts and subwidgets. Also use here to (optionally) apply the legacy stylesheet spacing settings (PANEL-19101).
- initSetUp()¶
Creates widget from
uiand stores itui_widget.Suggested subclass use: create and initialize subwidgets, and connect signals.
- restorePanelSettings(prev_panel_state=None)¶
Override base class to restore the panel settings
- savePanelSettings()¶
Override base class to save the panel settings
- showEvent(event)¶
Respond to the widget being shown by potentially propagating PanelX styles to all children. Calling at this time rather than during init ensures that the PanelX styles aren’t overridden by other stylesheets, which can cause distortions mainly in widget positioning.
- closeEvent(event)¶
Ensures proper handling of OK, Cancel, and [X] button clicks
- Default = 'default'¶
- Panel = 'panel'¶