Changeset 869:0797a6796f55


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

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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • locale/en/mlx.po

    r865 r869  
    456456msgid "flightsel_to"
    457457msgstr "To"
     458
     459msgid "flightsel_book"
     460msgstr "_Book flights..."
     461
     462msgid "flightsel_book_tooltip"
     463msgstr "Click here to be able to book one or more flights."""
    458464
    459465msgid "flightsel_pending"
  • locale/hu/mlx.po

    r865 r869  
    456456msgid "flightsel_to"
    457457msgstr "Hová"
     458
     459msgid "flightsel_book"
     460msgstr "_Járatfoglalás..."
     461
     462msgid "flightsel_book_tooltip"
     463msgstr "Kattints ide járat(ok) foglalásához."""
    458464
    459465msgid "flightsel_pending"
  • 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.