- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/monitor.py
r496 r680 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) 232 248 233 249 alignment.add(table) … … 317 333 self._qnh.set_text("-") 318 334 self._cog.set_text("-") 335 self._ils.set_text("-") 336 self._crs1.set_text("-") 337 self._crs2.set_text("-") 338 self._crsi.set_text("-") 319 339 else: 320 340 self._timestamp.set_text(time.strftime("%H:%M:%S", … … 375 395 376 396 self._navLightsOn.set_sensitive(aircraftState.navLightsOn is True) 377 self._antiCollisionLightsOn.set_sensitive(aircraftState.antiCollisionLightsOn )397 self._antiCollisionLightsOn.set_sensitive(aircraftState.antiCollisionLightsOn is True) 378 398 self._strobeLightsOn.set_sensitive(aircraftState.strobeLightsOn is True) 379 399 … … 387 407 self._landingLightsOn.set_sensitive(aircraftState.landingLightsOn is True) 388 408 389 self._pitotHeatOn.set_sensitive(aircraftState.pitotHeatOn )409 self._pitotHeatOn.set_sensitive(aircraftState.pitotHeatOn is True) 390 410 self._parking.set_sensitive(aircraftState.parking) 391 411 self._gearControlDown.set_sensitive(aircraftState.gearControlDown) … … 411 431 self._cog.set_text("%.2f%%" % (aircraftState.cog*100.0,)) 412 432 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 413 439 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.