Changeset 73:0108dbf6b53f for src/mlx


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

The gate selection page has a back button

File:
1 edited

Legend:

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

    r72 r73  
    410410        self.setMainWidget(alignment)       
    411411
     412        button = self.addButton(gtk.STOCK_GO_BACK)
     413        button.set_use_stock(True)
     414        button.connect("clicked", self._backClicked)
     415       
    412416        self._button = self.addButton(gtk.STOCK_GO_FORWARD, default = True)
    413417        self._button.set_use_stock(True)
     
    431435        """Called when the selection is changed."""
    432436        self._button.set_sensitive(selection.count_selected_rows()==1)
     437
     438    def _backClicked(self, button):
     439        """Called when the Back button is pressed."""
     440        self.goBack()
    433441
    434442    def _forwardClicked(self, button):
Note: See TracChangeset for help on using the changeset viewer.