Ignore:
Timestamp:
06/04/12 12:04:31 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added an OK button to the PIREP viewer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.