Changeset 340:36455b73b24f for src/mlx/gui
- Timestamp:
- 11/17/12 13:08:43 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/monitor.py
r337 r340 188 188 table.attach(self._position, 7, 10, 6, 7) 189 189 190 self._xpdrC = gtk.Label("XPDR CHARLIE") 191 table.attach(self._xpdrC, 10, 12, 6, 7) 190 (label, self._elevatorTrim) = self._createLabeledEntry("Trim:", 5) 191 table.attach(label, 10, 11, 6, 7) 192 table.attach(self._elevatorTrim, 11, 12, 6, 7) 192 193 193 194 self._apMaster = gtk.Label("AP MASTER") … … 207 208 table.attach(label, 6, 7, 7, 8) 208 209 table.attach(self._apAltitude, 7, 8, 7, 8) 210 211 self._xpdrC = gtk.Label("XPDR CHARLIE") 212 table.attach(self._xpdrC, 10, 12, 7, 8) 209 213 210 214 alignment.add(table) … … 282 286 self._windDirection.set_text("-") 283 287 self._position.set_text("-") 284 self._ xpdrC.set_sensitive(False)288 self._elevatorTrim.set_text("-") 285 289 self._apMaster.set_sensitive(False) 286 290 self._apHeadingHold.set_sensitive(False) … … 288 292 self._apAltitudeHold.set_sensitive(False) 289 293 self._apAltitude.set_text("-") 294 self._xpdrC.set_sensitive(False) 290 295 else: 291 296 self._timestamp.set_text(time.strftime("%H:%M:%S", … … 366 371 self._position.set_text(util.getCoordinateString((aircraftState.latitude, 367 372 aircraftState.longitude))) 368 self._xpdrC.set_sensitive(aircraftState.xpdrC) 369 373 self._elevatorTrim.set_text("%.2f" % (aircraftState.elevatorTrim,)) 370 374 self._apMaster.set_sensitive(aircraftState.apMaster) 371 375 self._apHeadingHold.set_sensitive(aircraftState.apHeadingHold) … … 374 378 self._apAltitude.set_text("%5.0f" % (aircraftState.apAltitude,)) 375 379 380 self._xpdrC.set_sensitive(aircraftState.xpdrC) 381 376 382 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.