schrodinger.application.livedesign.ld_export_gui module¶
- class schrodinger.application.livedesign.ld_export_gui.ExportPanelWizard¶
Bases:
schrodinger.ui.qt.appframework2.wizards.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:
schrodinger.application.livedesign.ld_export.LDExportPanelMixin
,schrodinger.models.mappers.MapperMixin
,schrodinger.ui.qt.appframework2.wizards.BaseWizardPanel
- model_class¶
alias of
schrodinger.application.livedesign.ld_export.ExportModel
- ui_module = <module 'schrodinger.application.livedesign.export_setup_ui' from '/scr/buildbot/savedbuilds/2024-4/NB/build-117/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
ui
and stores itui_widget
.Suggested subclass use: create and initialize subwidgets, and connect signals.
- initLayOut()¶
@overrides: widgetmixins.InitMixin
- initSetDefaults()¶
Override
mappers.MapperMixin
to 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
QLineEdit
orQComboBox
a custom object that inherits
MapperMixin
orTargetMixin
a
TargetSpec
instancea 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
TargetSpec
object, 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.BaseWizardPanel
for further documentation.- Returns
whether to proceed to the next panel as requested
- Return type
bool or NoneType
- class schrodinger.application.livedesign.ld_export_gui.ExportMainPanel(*args, **kwargs)¶
Bases:
schrodinger.application.livedesign.ld_settings.LDExportSettingsMixin
,schrodinger.application.livedesign.ld_export.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
ui
and 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(self, a0: Optional[QShowEvent])¶
- closeEvent(event)¶
Ensures proper handling of OK, Cancel, and [X] button clicks