Changeset 834:5651e303daa9 for src/mlx/gui/info.py
- Timestamp:
- 04/17/17 06:47:25 (7 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/info.py
r833 r834 54 54 return (frame, comments) 55 55 56 def __init__(self, gui , mainInstance = True):56 def __init__(self, gui): 57 57 """Construct the flight info tab.""" 58 58 super(FlightInfo, self).__init__() 59 59 self._gui = gui 60 self._mainInstance = mainInstance61 60 62 61 self._commentsAlignment = gtk.Alignment(xalign = 0.5, yalign = 0.5, … … 111 110 buffer.get_end_iter(), True)) 112 111 113 @comments.setter114 def comments(self, comments):115 """Set the comments."""116 self._comments.get_buffer().set_text(comments)117 118 112 @property 119 113 def hasComments(self): … … 153 147 self._faultExplainWidget.clearFault(id) 154 148 155 def setExplanation(self, id, explanation):156 """Set the explanation of the given fault."""157 self._faultExplainWidget.setExplanation(id, explanation)158 159 149 def enable(self, aircraftType): 160 150 """Enable the flight info tab.""" … … 178 168 self._delayCodeTable.reset() 179 169 180 def activateDelayCode(self, code):181 """Active the checkbox corresponding to the given code."""182 self._delayCodeTable.activateCode(code)183 184 170 def delayCodesChanged(self): 185 171 """Callewd when the delay codes have changed.""" 186 if self._mainInstance: 187 self._gui.delayCodesChanged() 172 self._gui.delayCodesChanged() 188 173 189 174 def _commentsChanged(self, textbuffer): 190 175 """Called when the comments have changed.""" 191 if self._mainInstance: 192 self._gui.commentsChanged() 176 self._gui.commentsChanged() 193 177 194 178 def _faultExplanationsChanged(self, faultExplainWidget, fullyExplained): 195 179 """Called when the status of the fault explanations has changed.""" 196 if self._mainInstance: 197 self._gui.faultExplanationsChanged() 180 self._gui.faultExplanationsChanged()
Note:
See TracChangeset
for help on using the changeset viewer.