Changeset 592:1d9795bde55c for src/mlx/gui
- Timestamp:
- 12/23/14 09:29:51 (10 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r590 r592 1603 1603 """Construct the page.""" 1604 1604 super(FuelPage, self).__init__(wizard, xstr("fuel_title"), 1605 xstr("fuel_help"), 1605 xstr("fuel_help_pre") + 1606 xstr("fuel_help_post"), 1606 1607 completedHelp = xstr("fuel_chelp")) 1607 1608 … … 1625 1626 """Activate the page.""" 1626 1627 self._setupTanks(self._wizard._fuelData) 1628 1629 aircraft = self._wizard.gui.flight.aircraft 1630 minLandingFuel = aircraft.minLandingFuel 1631 recommendedLandingFuel = aircraft.recommendedLandingFuel 1632 1633 middleHelp = "" if minLandingFuel is None else \ 1634 (xstr("fuel_help_min") % (minLandingFuel,)) \ 1635 if recommendedLandingFuel is None else \ 1636 (xstr("fuel_help_min_rec") % (minLandingFuel, 1637 recommendedLandingFuel)) 1638 self.setHelp(xstr("fuel_help_pre") + middleHelp + xstr("fuel_help_post")) 1627 1639 1628 1640 def finalize(self):
Note:
See TracChangeset
for help on using the changeset viewer.