schrodinger.application.msv.gui.popup_dialogs module¶
-
class
schrodinger.application.msv.gui.popup_dialogs.
AntibodyCDRComboBox
(parent=None, items=None, default_item='', default_index=0, command=None, nocall=False, layout=None, tip='', itemdict=None)¶ Bases:
schrodinger.application.msv.gui.popup_dialogs.MsvComboBox
Class specifically for setting AntibodyCDRScheme enum info via a combo box.
-
targetGetValue
()¶ Returns: appropriate enum entry for the combobox Return type: schrodinger.protein.annotation.AntibodyCDRScheme
-
targetSetValue
(value)¶ Set value based on enum.
Parameters: value ( schrodinger.protein.annotation.AntibodyCDRScheme
) – the antibody CDR numbering scheme to use
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
BaseMsvPopUp
(parent=None)¶ Bases:
schrodinger.ui.qt.pop_up_widgets.PopUp
Base class for MSV popup dialogs. Subclasses should define self._widget_to_model_map, the mapping between widgets and option model.
-
createCircleCheckBox
(label_text, set_checked=False)¶ Create and return a checkbox with the circle icon.
Parameters: - label_text (str) – Text for the checkbox label
- set_checked (bool) – Whether to set the checkbox as checked by default
Returns: The circle icon checkbox
Return type: QtWidgets.QCheckBox
-
createGridLayout
(indent=True)¶ Create a grid layout and set its margins.
Returns: The grid layout Return type: QtWidgets.QGridLayout
-
createHorizontalLayout
(indent=True)¶ Create a horizontal layout and set its margins.
Returns: The created horizontal layout Return type: QtWidgets.QHBoxLayout
-
createVerticalLayout
(indent=True)¶ Create a vertical layout and set its margins.
Returns: The created vertical layout Return type: QtWidgets.QVBoxLayout
-
getOptionsMap
()¶ Returns a dictionary mapping a widget to an options_model param.
-
getTargetParamMap
()¶ Returns a dictionary mapping mapper Targets to options Params.
-
setOptionsModel
(options_model)¶ Sets the popup widget (target) to match options_model.
Parameters: options_model ( preferences.OptionsModel
) – The new options model to set the mapper on
-
setup
()¶ Sets up all components of the dialog. Should not be overridden by derived classes. Instead, they should override _setupWidgets.
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
ClickableLabel
¶ Bases:
PyQt5.QtWidgets.QLabel
A label that emits a ‘clicked’ signal when clicked
Variables: clicked ( QtCore.pyqtSignal
) – emitted when the lable is clicked,-
clicked
¶
-
mousePressEvent
(event)¶
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
ColorPopUp
(parent=None)¶ Bases:
schrodinger.application.msv.gui.popup_dialogs.BaseMsvPopUp
A popup dialog to provide options for color settings.
Variables: - colorSelResidues (
QtCore.pyqtSignal
) – Signal emitted when one of the COLOR SELECTED RESIDUES color buttons is clicked. Emits theQtgui.QColor
to color the residues. - applyColorsToWorkspaceRequested (
QtCore.pyqtSignal
) – Signal emitted when the APPLY COLORS TO WORKSPACE button is clicked.
-
applyColorsToWorkspaceRequested
¶
-
colorSelResRequested
¶
-
onApplyColorsToWorkspaceClicked
()¶
-
onColorSelResCustomClicked
()¶ Respond to clicking the Color Selected Residues Custom button.
-
onColorSeqAlnClicked
()¶
-
setOptionsModel
(options_model)¶
- colorSelResidues (
-
class
schrodinger.application.msv.gui.popup_dialogs.
ColorSeqAlnComboBox
(parent=None, items=None, default_item='', default_index=0, command=None, nocall=False, layout=None, tip='', itemdict=None)¶ Bases:
schrodinger.application.msv.gui.popup_dialogs.MsvComboBox
Class specifically for setting ColorByAln enum info via a combo box.
-
colorSeqAlnChanged
(color_seq)¶ Update components and emit the appropriate top level signal when “Color by Sequence Alignment” is toggled.
Parameters: color_seq (bool) – whether the Color By Sequence Alignment checkbox is checked
-
targetGetValue
()¶ Returns: appropriate enum entry for the combobox Return type: Enum
-
targetSetValue
(value)¶ Set value based on enum.
Parameters: value (enum) – the coloring mode to use
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
CustomRadioButton
(text, checked=False, parent=None)¶ Bases:
PyQt5.QtWidgets.QRadioButton
Custom radio button
-
class
schrodinger.application.msv.gui.popup_dialogs.
DarkBackgroundLabel
(text, parent=None)¶ Bases:
schrodinger.application.msv.gui.popup_dialogs.ClickableLabel
A label that has dark background and text in white
-
class
schrodinger.application.msv.gui.popup_dialogs.
GrayLabel
(text, parent=None)¶ Bases:
PyQt5.QtWidgets.QLabel
A label with smaller font and gray text, white background
-
class
schrodinger.application.msv.gui.popup_dialogs.
IconLabelToggle
(text, checked=False, parent=None)¶ Bases:
PyQt5.QtWidgets.QCheckBox
Customized checkbox with an image icon on the left, which changes upon clicking.
-
class
schrodinger.application.msv.gui.popup_dialogs.
MsvComboBox
(parent=None, items=None, default_item='', default_index=0, command=None, nocall=False, layout=None, tip='', itemdict=None)¶ Bases:
schrodinger.models.mappers.DefaultTargetMixin
,schrodinger.ui.qt.swidgets.SComboBox
Subclass of
swidgets.SComboBox
that defines functionality to synchronize options with tabbed MSV widgets.-
onCurrentIndexChanged
()¶
-
setTooltips
(tooltips)¶ Sets tooltips for each item in the ComboBox as defined by a list.
Parameters: tooltips (list of str) – Messages to display as tooltips.
-
targetGetValue
()¶
-
targetSetValue
(value)¶
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
PairwiseAlnSettingsDialog
(parent=None)¶ Bases:
PyQt5.QtWidgets.QDialog
This class implements the “Pairwise Alignment Settings” dialog.
Variables: subMatrixRequested ( QtCore.pyqtSignal
) – Signal emitted when Requested Substitution Matrix is clicked-
subMatrixRequested
¶
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
PlusMinusWidget
(parent=None)¶ Bases:
schrodinger.models.mappers.DefaultTargetMixin
,PyQt5.QtWidgets.QFrame
A widget that uses two labels that have plus or minus on them, to change the value attribute.
-
decreaseFont
()¶
-
increaseFont
()¶
-
setValue
(_)¶ Every widget in the view dialog has setValue called on it, so we have a no-op here to avoid an AttributeError.
-
targetGetValue
()¶
-
targetSetValue
(value)¶
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
PopUpDialogButton
(parent, pop_up_class, text)¶ Bases:
schrodinger.ui.qt.pop_up_widgets.ToolButtonWithPopUp
A checkable button that brings up a popup dialog when toggled.
-
mouseClickEvent
(event)¶
-
mousePressEvent
(event)¶
-
popup_dialog
¶
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
QuickAlignPopUp
(parent=None)¶ Bases:
schrodinger.application.msv.gui.popup_dialogs.BaseMsvPopUp
Popup dialog for performing alignments.
Variables: - sequenceAlignmentRequested (QtCore.pyqtSignal) – Signal emitted when “Align Sequences” is clicked. Emitted with a sequence alignment mode.
- structureAlignmentRequested (QtCore.pyqtSignal) – Signal emitted when “Align Structures” is clicked. Emitted with a structure alignment mode.
-
onAlignSequencesClicked
()¶ Emits signal requesting an alignment based on the selected RadioButton
-
onAlignStructuresClicked
()¶ Emits signal requesting a structural alignment based on the selected RadioButton
-
onMultSeqAlnBtnClicked
()¶ Respond to clicking the Multiple sequence alignment options button
-
onPairSeqAlnBtnClicked
()¶ Respond to clicking the Pairwise sequence alignment options button
-
sequenceAlignmentRequested
¶
-
structureAlignmentRequested
¶
-
class
schrodinger.application.msv.gui.popup_dialogs.
QuickAnnotationPopUp
(parent=None)¶ Bases:
schrodinger.application.msv.gui.popup_dialogs.BaseMsvPopUp
Popup dialog for performing annotations.
-
resetAllAnnotations
()¶ Reset the annotations to the defaults in the preferences option model
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
ResiduePropensityComboBox
(parent=None, itemdict=None)¶ Bases:
schrodinger.models.mappers.DefaultTargetMixin
,schrodinger.ui.qt.multi_combo_box.MultiComboBox
Class specifically for setting residue propensity annotations using a a multi combo box. Note that you can select multiple annotations.
-
model_class
¶ alias of
ResiduePropensityAnnotations
-
onSelectionChanged
()¶
-
targetGetValue
()¶
-
targetSetValue
(params)¶
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
SideBySideToggle
(label_text, text_value_mapping, initial_value, parent=None, margins=True)¶ Bases:
schrodinger.models.mappers.DefaultTargetMixin
,PyQt5.QtWidgets.QWidget
A customized widget for switching between text options representing different values
Emits a signal with the appropriate value when a new option is clicked. Changes background color when an option is selected
-
getValue
()¶ Returns the selected value for the widget
Return type: object Returns: The selected value for the widget
-
labels
()¶ Return type: list Returns: The labels used in the side by side toggle widget This is useful for testing.
-
setValue
(value)¶ Sets the value for the widget, which will select the associated label and deselect the others.
Parameters: value (object) – Any Python object that is among the possible values for the widget Raises: ValueError – If the value isn’t among the possible values defined on instantiation of the widget
-
targetGetValue
()¶
-
targetSetValue
(value)¶
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
ToggleOption
(text, value, font, parent=None)¶ Bases:
PyQt5.QtCore.QObject
An instance handles one side of a SideBySideToggle
-
clicked
¶
-
onLabelClicked
()¶ Emits value when the label is clicked
-
select
(selected=True)¶ Changes the label’s stylesheet to indicate whether it is selected
Parameters: selected (bool) – Whether to select the label
-
-
class
schrodinger.application.msv.gui.popup_dialogs.
ViewStylePopUp
(parent=None)¶ Bases:
schrodinger.application.msv.gui.popup_dialogs.BaseMsvPopUp
A popup dialog to provide options for viewing style