Changeset 846:d11ea8564da8 for src/mlx/gui/info.py
- Timestamp:
- 05/10/17 17:41:17 (7 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/info.py
r844 r846 54 54 return (frame, comments) 55 55 56 def __init__(self, gui, mainInstance = True):56 def __init__(self, gui, callbackObject = None): 57 57 """Construct the flight info tab.""" 58 58 super(FlightInfo, self).__init__() 59 59 self._gui = gui 60 self._ mainInstance = mainInstance60 self._callbackObject = callbackObject 61 61 62 62 self._commentsAlignment = gtk.Alignment(xalign = 0.5, yalign = 0.5, … … 184 184 def delayCodesChanged(self): 185 185 """Callewd when the delay codes have changed.""" 186 if self._ mainInstance:186 if self._callbackObject is None: 187 187 self._gui.delayCodesChanged() 188 else: 189 self._callbackObject.delayCodesChanged() 188 190 189 191 def _commentsChanged(self, textbuffer): 190 192 """Called when the comments have changed.""" 191 if self._ mainInstance:193 if self._callbackObject is None: 192 194 self._gui.commentsChanged() 195 else: 196 self._callbackObject.commentsChanged() 193 197 194 198 def _faultExplanationsChanged(self, faultExplainWidget, fullyExplained): 195 199 """Called when the status of the fault explanations has changed.""" 196 if self._ mainInstance:200 if self._callbackObject is None: 197 201 self._gui.faultExplanationsChanged() 202 else: 203 self._callbackObject.faultExplanationsChanged()
Note:
See TracChangeset
for help on using the changeset viewer.