schrodinger.application.pymol.export_to_pymol_gui module¶
- class schrodinger.application.pymol.export_to_pymol_gui.AdvancedSettingsPopUp(*args, **kwargs)¶
Bases:
MapperMixin,InitMixin,PopUpAdvanced PyMOL settings pop-up.
- ui_module = <module 'schrodinger.application.pymol.ui.advanced_settings_wdg_ui' from '/scr/buildbot/builds/build/internal/lib/python3.11/site-packages/schrodinger/application/pymol/ui/advanced_settings_wdg_ui.py'>¶
- model_class¶
alias of
AdvancedSettingsModel
- setup()¶
Subclass-specific initialization. Subclasses can re-implement this function with custom set up code.
- initSetUp()¶
Creates widget from
uiand stores itui_widget.Suggested subclass use: create and initialize subwidgets, and connect signals.
- 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)]
- class schrodinger.application.pymol.export_to_pymol_gui.ExportToPyMolPanel(*args, **kwargs)¶
Bases:
PanelExport To PyMOLPanel- ui_module = <module 'schrodinger.application.pymol.ui.export_to_pymol_dlg_ui' from '/scr/buildbot/builds/build/internal/lib/python3.11/site-packages/schrodinger/application/pymol/ui/export_to_pymol_dlg_ui.py'>¶
- model_class¶
alias of
ExportToPymolSettings
- APPLY_LEGACY_STYLESHEET = False¶
- 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.
- initSetDefaults()¶
@overrides: widgetmixins.InitMixin
- 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)]
- 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
- hideEvent(self, a0: Optional[QHideEvent])¶
- Default = 'default'¶
- Panel = 'panel'¶