Changeset 89:ef4711a984fe for src/mlx/gui/monitor.py
- Timestamp:
- 04/17/12 18:00:09 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/monitor.py
r77 r89 4 4 5 5 import mlx.const as const 6 import mlx.util as util 6 7 7 8 import time … … 170 171 table.attach(label, 4, 5, 6, 7) 171 172 table.attach(self._windDirection, 5, 6, 6, 7) 173 174 (label, self._position) = self._createLabeledEntry("Position:", 25) 175 table.attach(label, 6, 7, 6, 7) 176 table.attach(self._position, 7, 10, 6, 7) 172 177 173 178 alignment.add(table) … … 240 245 self._windSpeed.set_text("-") 241 246 self._windDirection.set_text("-") 247 self._position.set_text("-") 242 248 else: 243 249 self._timestamp.set_text(time.strftime("%H:%M:%S", … … 304 310 self._windSpeed.set_text("%.0f" % (aircraftState.windSpeed,)) 305 311 self._windDirection.set_text("%03.0f" % (aircraftState.windDirection,)) 312 self._position.set_text(util.getCoordinateString((aircraftState.latitude, 313 aircraftState.longitude))) 306 314 307 315 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.