Changeset 605:f508c2cac441
- Timestamp:
- 03/01/15 18:22:09 (10 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r592 r605 3273 3273 self._gate.get_active()>=0) and \ 3274 3274 (not self._tooBigTimeDifference or 3275 gui.hasComments or gui.hasDelayCode) 3275 gui.hasComments or gui.hasDelayCode) and \ 3276 gui.faultsFullyExplained 3276 3277 3277 3278 wasSensitive = self._saveButton.get_sensitive() … … 4021 4022 self._finishPage.updateButtons() 4022 4023 4024 def faultExplanationsChanged(self): 4025 """Called when the faults and their explanations have changed.""" 4026 self._finishPage.updateButtons() 4027 4023 4028 def rtoToggled(self, indicated): 4024 4029 """Called when the RTO indication has changed.""" -
src/mlx/gui/gui.py
r604 r605 408 408 return self._flightInfo.hasDelayCode 409 409 410 @property 411 def faultsFullyExplained(self): 412 """Determine if all the faults have been fully explained by the 413 user.""" 414 return self._flightInfo.faultsFullyExplained 415 410 416 def run(self): 411 417 """Run the GUI.""" … … 809 815 """Called when the delay codes have changed.""" 810 816 self._wizard.delayCodesChanged() 817 818 def faultExplanationsChanged(self): 819 """Called when the status of the explanations of the faults have 820 changed.""" 821 self._wizard.faultExplanationsChanged() 811 822 812 823 def updateRTO(self, inLoop = False): -
src/mlx/gui/info.py
r604 r605 69 69 70 70 self._faultExplainWidget = FaultExplainWidget() 71 self._faultExplainWidget.connect("explanations-changed", 72 self._faultExplanationsChanged) 71 73 commentsBox.pack_start(self._faultExplainWidget, True, True, 8) 72 74 … … 128 130 return self._delayCodeTable.hasDelayCode 129 131 132 @property 133 def faultsFullyExplained(self): 134 """Determine if all the faults have been explained by the pilot.""" 135 return self._faultExplainWidget.fullyExplained 136 130 137 def addFault(self, id, faultText): 131 138 """Add a fault to the list of faults.""" … … 168 175 """Called when the comments have changed.""" 169 176 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.