Package schrodinger :: Package ui :: Module residueselector :: Class MutationSelectorComboBox
[hide private]
[frames] | no frames]

Class MutationSelectorComboBox

                             object --+        
                                      |        
qt.pop_up_widgets._WidgetWithPopUpMixin --+    
                                          |    
                  PyQt4.QtGui.QComboBox --+    
                                          |    
        qt.pop_up_widgets.ComboBoxWithPopUp --+
                                              |
                                             MutationSelectorComboBox

This combo box will show a residue type selection pop-up box when clicked.

Instance Methods [hide private]
 
__init__(self, parent, pop_up_class=MutationSelectorPopUp)
x.__init__(...) initializes x; see help(type(x)) for signature
 
popUpUpdated(self, mutations)
Over-ride the popUpUpdated() method of MutationSelectorComboBox.
 
setSelectedMutations(self, mutations)
Set the mutations that should be selected.
set of str
getSelectedMutations(self)
Get the mutations that have been selected by the user in the popup
 
disableResidues(self, disable_residues)

Inherited from qt.pop_up_widgets.ComboBoxWithPopUp: hidePopup, showPopup

Inherited from qt.pop_up_widgets._WidgetWithPopUpMixin: baseSetup, moveEvent, resizeEvent, setPopupHalign, setPopupValign, showEvent

Inherited from qt.pop_up_widgets._WidgetWithPopUpMixin (private): _autoPopupAlignment, _getPopupAlignment, _setPopUpGeometry

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from qt.pop_up_widgets.ComboBoxWithPopUp: popUpClosing

Inherited from qt.pop_up_widgets.ComboBoxWithPopUp (private): _pop_up

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, pop_up_class=MutationSelectorPopUp)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • parent - The Qt parent widget
  • pop_up_class - The class of the pop up widget. Should be a subclass of PopUp.
Overrides: object.__init__
(inherited documentation)

popUpUpdated(self, mutations)

 

Over-ride the popUpUpdated() method of MutationSelectorComboBox. Callback that passes the selected mutations back to the line edit.

Parameters:
  • mutations (set of str) - The mutations selected by the user in the pop up
Overrides: qt.pop_up_widgets._WidgetWithPopUpMixin.popUpUpdated

setSelectedMutations(self, mutations)

 

Set the mutations that should be selected.

Parameters:
  • mutations (set of str) - The mutations selected by the user in the pop up

getSelectedMutations(self)

 

Get the mutations that have been selected by the user in the popup

Returns: set of str
Set of strings representing the user's residue mutation selections

disableResidues(self, disable_residues)

 
Parameters:
  • disable_residues (List of (str, str) tuples.) - List of residues to disable. Each item is a tuple of (res_name, tooltip).