Ignore:
Timestamp:
03/01/15 18:22:09 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The finish page also checks for the presence of all explanations (re #248)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/info.py

    r604 r605  
    6969
    7070        self._faultExplainWidget = FaultExplainWidget()
     71        self._faultExplainWidget.connect("explanations-changed",
     72                                         self._faultExplanationsChanged)
    7173        commentsBox.pack_start(self._faultExplainWidget, True, True, 8)
    7274
     
    128130        return self._delayCodeTable.hasDelayCode
    129131
     132    @property
     133    def faultsFullyExplained(self):
     134        """Determine if all the faults have been explained by the pilot."""
     135        return self._faultExplainWidget.fullyExplained
     136
    130137    def addFault(self, id, faultText):
    131138        """Add a fault to the list of faults."""
     
    168175        """Called when the comments have changed."""
    169176        self._gui.commentsChanged()
     177
     178    def _faultExplanationsChanged(self, faultExplainWidget, fullyExplained):
     179        """Called when the status of the fault explanations has changed."""
     180        self._gui.faultExplanationsChanged()
Note: See TracChangeset for help on using the changeset viewer.