Changeset 224:6269b46d6740


Ignore:
Timestamp:
06/04/12 12:04:31 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added an OK button to the PIREP viewer.

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/const.py

    r220 r224  
    217217def flightType2string(flightType):
    218218    """Get the string equivalent of the given flight type."""
    219     print _flightTypeStrings
    220219    return _flightTypeStrings[flightType] \
    221220           if flightType in _flightTypeStrings else None   
  • src/mlx/gui/pirep.py

    r223 r224  
    152152        label.set_tooltip_text(xstr("pirepView_tab_log_tooltip"))
    153153        self._notebook.append_page(logTab, label)
     154
     155        self._okButton = self.add_button(xstr("button_ok"), RESPONSETYPE_OK)
     156        self._okButton.set_can_default(True)
    154157       
    155158    def setPIREP(self, pirep):
     
    237240
    238241        self._notebook.set_current_page(0)
     242        self._okButton.grab_default()
    239243
    240244    def _buildDataTab(self):
Note: See TracChangeset for help on using the changeset viewer.