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