Changeset 869:0797a6796f55 for src


Ignore:
Timestamp:
06/18/17 18:25:18 (7 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

It is possible to book a flight from the flight selection page too (re #304)

Location:
src/mlx/gui
Files:
2 edited

Legend:

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

    r866 r869  
    511511        self.setMainWidget(mainBox)
    512512
     513        self._bookButton = self.addButton(xstr("flightsel_book"),
     514                                          sensitive = True,
     515                                          clicked = self._bookClicked,
     516                                          tooltip = xstr("flightsel_book_tooltip"))
     517
    513518        self._pendingButton = self.addButton(xstr("flightsel_pending"),
    514519                                             sensitive = False,
     
    606611        self._setupHelp()
    607612        self._updatePendingButton()
     613
     614    def _bookClicked(self, button):
     615        """Called when the Book flights button is clicked."""
     616        self._wizard.gui.showTimetable()
    608617
    609618    def _pendingClicked(self, button):
  • src/mlx/gui/gui.py

    r859 r869  
    13021302        return self._notebook.get_current_page()==0
    13031303
    1304     def showTimetable(self, menuItem):
     1304    def showTimetable(self, menuItem = None):
    13051305        """Callback for showing the timetable."""
    13061306        if self._timetableWindow.hasFlightPairs:
Note: See TracChangeset for help on using the changeset viewer.