schrodinger.application.pymol.export_to_pymol_gui module¶
- class schrodinger.application.pymol.export_to_pymol_gui.AdvancedSettingsPopUp(*args, **kwargs)¶
Bases:
schrodinger.models.mappers.MapperMixin
,schrodinger.ui.qt.widgetmixins.basicmixins.InitMixin
,schrodinger.ui.qt.pop_up_widgets.PopUp
Advanced PyMOL settings pop-up.
- ui_module = <module 'schrodinger.application.pymol.ui.advanced_settings_wdg_ui' from '/scr/buildbot/savedbuilds/2024-3/NB/build-133/internal/lib/python3.11/site-packages/schrodinger/application/pymol/ui/advanced_settings_wdg_ui.py'>¶
- model_class¶
alias of
schrodinger.application.pymol.gui_models.AdvancedSettingsModel
- setup()¶
Subclass-specific initialization. Subclasses can re-implement this function with custom set up code.
- initSetUp()¶
Creates widget from
ui
and 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
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)]
- class schrodinger.application.pymol.export_to_pymol_gui.ExportToPyMolPanel(*args, **kwargs)¶
Bases:
schrodinger.ui.qt.basewidgets.Panel
Export To PyMOL
Panel- ui_module = <module 'schrodinger.application.pymol.ui.export_to_pymol_dlg_ui' from '/scr/buildbot/savedbuilds/2024-3/NB/build-133/internal/lib/python3.11/site-packages/schrodinger/application/pymol/ui/export_to_pymol_dlg_ui.py'>¶
- model_class¶
alias of
schrodinger.application.pymol.gui_models.ExportToPymolSettings
- APPLY_PANELX_STYLESHEET = True¶
- 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
ui
and 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
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)]
- showEvent(self, a0: QShowEvent)¶
- closeEvent(event)¶
Ensures proper handling of OK, Cancel, and [X] button clicks
- hideEvent(self, a0: QHideEvent)¶