Package schrodinger :: Package application :: Package desmond :: Module feputils :: Class ProteinCheckLabelSpinner
[hide private]
[frames] | no frames]

Class ProteinCheckLabelSpinner

  object --+    
           |    
LabelSpinner --+
               |
              ProteinCheckLabelSpinner

Instance Methods [hide private]
 
__init__(self, protein, label, protein_health_btn)
Construct a protein checker that takes a protein and a warning label and shows a spinning animation in the label while the check is running.
 
start(self)
Start the animation
 
stop(self)
Stop the animation and restore the original icon
 
update(self)
Check if the reliability calculation is finished and if so, stop the spinner and display the results.
 
finish(self)
Display the results of the protein reliability check.
 
showProteinHealthReport(self)
Bring up protein reliability panel to show results of protein check.

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, protein, label, protein_health_btn)
(Constructor)

 

Construct a protein checker that takes a protein and a warning label and shows a spinning animation in the label while the check is running.

Parameters:
  • protein (schrodinger.structure.Structure) - the protein to check
  • label (PyQt4.QtGui.QLabel) - the warning label
  • protein_health_btn (QtGui.QToolButton) - toolbutton that is used to bring up protein relaiability report panel.
Overrides: object.__init__

start(self)

 

Start the animation

Overrides: LabelSpinner.start
(inherited documentation)

stop(self)

 

Stop the animation and restore the original icon

Overrides: LabelSpinner.stop
(inherited documentation)

update(self)

 

Check if the reliability calculation is finished and if so, stop the spinner and display the results.

Overrides: LabelSpinner.update

finish(self)

 

Display the results of the protein reliability check. If there are any problems, the warning label is set to visible and the tooltop set to the problem report. If there are no problems, the label is hidden.