Changeset 31:c9ed7a60bf3b for src/mlx/gui/gui.py
- Timestamp:
- 02/25/12 14:44:45 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r30 r31 99 99 gobject.idle_add(self._setData, state) 100 100 101 def resetFlightStatus(self): 102 """Reset the status of the flight.""" 103 self._statusIcon.resetFlightStatus() 104 105 def setStage(self, stage): 106 """Set the stage of the flight.""" 107 gobject.idle_add(self._setStage, stage) 108 109 def _setStage(self, stage): 110 """Set the stage of the flight.""" 111 self._statusIcon.setStage(stage) 112 113 def setRating(self, rating): 114 """Set the rating of the flight.""" 115 gobject.idle_add(self._setRating, rating) 116 117 def _setRating(self, rating): 118 """Set the rating of the flight.""" 119 self._statusIcon.setRating(rating) 120 121 def setNoGo(self, reason): 122 """Set the rating of the flight to No-Go with the given reason.""" 123 gobject.idle_add(self._setNoGo, reason) 124 125 def _setNoGo(self, reason): 126 """Set the rating of the flight.""" 127 self._statusIcon.setNoGo(reason) 128 101 129 def _handleMainWindowState(self, window, event): 102 130 """Hande a change in the state of the window""" … … 177 205 self._simulator.startMonitoring() 178 206 else: 207 self.resetFlightStatus() 179 208 self._connecting = False 180 209 self._simulator.stopMonitoring()
Note:
See TracChangeset
for help on using the changeset viewer.