- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/monitor.py
r680 r496 230 230 table.attach(label, 2, 3, 8, 9) 231 231 table.attach(self._cog, 3, 4, 8, 9) 232 233 (label, self._ils) = self._createLabeledEntry("ILS:", 7)234 table.attach(label, 4, 5, 8, 9)235 table.attach(self._ils, 5, 6, 8, 9)236 237 (label, self._crs1) = self._createLabeledEntry("CRS1:", 7)238 table.attach(label, 6, 7, 8, 9)239 table.attach(self._crs1, 7, 8, 8, 9)240 241 (label, self._crs2) = self._createLabeledEntry("CRS2:", 7)242 table.attach(label, 8, 9, 8, 9)243 table.attach(self._crs2, 9, 10, 8, 9)244 245 (label, self._crsi) = self._createLabeledEntry("CRSI:", 7)246 table.attach(label, 10, 11, 8, 9)247 table.attach(self._crsi, 11, 12, 8, 9)248 232 249 233 alignment.add(table) … … 333 317 self._qnh.set_text("-") 334 318 self._cog.set_text("-") 335 self._ils.set_text("-")336 self._crs1.set_text("-")337 self._crs2.set_text("-")338 self._crsi.set_text("-")339 319 else: 340 320 self._timestamp.set_text(time.strftime("%H:%M:%S", … … 395 375 396 376 self._navLightsOn.set_sensitive(aircraftState.navLightsOn is True) 397 self._antiCollisionLightsOn.set_sensitive(aircraftState.antiCollisionLightsOn is True)377 self._antiCollisionLightsOn.set_sensitive(aircraftState.antiCollisionLightsOn) 398 378 self._strobeLightsOn.set_sensitive(aircraftState.strobeLightsOn is True) 399 379 … … 407 387 self._landingLightsOn.set_sensitive(aircraftState.landingLightsOn is True) 408 388 409 self._pitotHeatOn.set_sensitive(aircraftState.pitotHeatOn is True)389 self._pitotHeatOn.set_sensitive(aircraftState.pitotHeatOn) 410 390 self._parking.set_sensitive(aircraftState.parking) 411 391 self._gearControlDown.set_sensitive(aircraftState.gearControlDown) … … 431 411 self._cog.set_text("%.2f%%" % (aircraftState.cog*100.0,)) 432 412 433 self._ils.set_text("-" if aircraftState.ils is None else aircraftState.ils)434 435 self._crs1.set_text("-" if aircraftState.nav1_obs is None else str(aircraftState.nav1_obs))436 self._crs2.set_text("-" if aircraftState.nav2_obs is None else str(aircraftState.nav2_obs))437 self._crsi.set_text("-" if aircraftState.ils_obs is None else str(aircraftState.ils_obs))438 439 413 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.