Ignore:
Timestamp:
05/01/12 17:54:25 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added mnemonics to the fuel tanks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/flight.py

    r144 r145  
    10021002        label = gtk.Label("<b>" + name + "</b>")
    10031003        label.set_use_markup(True)
     1004        label.set_use_underline(True)
    10041005        label.set_justify(JUSTIFY_CENTER)
    10051006        label.set_alignment(0.5, 1.0)
     
    10331034        self._expectedButton.set_width_chars(5)
    10341035        self._expectedButton.connect("value-changed", self._expectedChanged)
     1036
     1037        label.set_mnemonic_widget(self._expectedButton)
    10351038
    10361039        alignment = gtk.Alignment(xalign = 0.5, yalign = 0.5,
     
    11861189        self._pumpIndex = 0
    11871190
    1188     # def activate(self):
    1189     #     """Activate the page."""
    1190     #     gui = self._wizard.gui
    1191 
    1192     #     self._setupTanks(gui.flight.aircraft.fuelTanks,
    1193     #                      self._wizard._fuelData)
     1191    def activate(self):
     1192        """Activate the page."""
     1193        gui = self._wizard.gui
     1194
     1195        self._setupTanks(gui.flight.aircraft.fuelTanks,
     1196                         self._wizard._fuelData)
    11941197
    11951198    def finalize(self):
     
    25532556            page.reset()
    25542557       
    2555         self.setCurrentPage(6)
     2558        self.setCurrentPage(0)
    25562559
    25572560    def getFleet(self, callback, force = False):
Note: See TracChangeset for help on using the changeset viewer.