Ignore:
Timestamp:
02/22/14 06:36:15 (10 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added help text to be displayed if the arrival and/or departure times differ too much from the schedule (re #227)

File:
1 edited

Legend:

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

    r558 r563  
    210210        pass
    211211
     212    def setHelp(self, help):
     213        """Set the help string."""
     214        self._help = help
     215        if not self._completed:
     216            self._helpLabel.set_markup(self._help)
     217            self._helpLabel.set_sensitive(True)
     218
    212219    def complete(self):
    213220        """Called when the page is completed.
     
    28082815    def __init__(self, wizard):
    28092816        """Construct the finish page."""
    2810         super(FinishPage, self).__init__(wizard, xstr("finish_title"),
    2811                                          xstr("finish_help"))
     2817        help = xstr("finish_help") + xstr("finish_help_wrongtime")
     2818        super(FinishPage, self).__init__(wizard, xstr("finish_title"), help)
    28122819
    28132820        alignment = gtk.Alignment(xalign = 0.5, yalign = 0.5,
     
    30613068
    30623069        self._tooBigTimeDifference = tooBigDeparture or tooBigArrival
     3070
     3071        if self._tooBigTimeDifference:
     3072            self.setHelp(xstr("finish_help") + xstr("finish_help_wrongtime"))
     3073        else:
     3074            self.setHelp(xstr("finish_help"))
    30633075
    30643076        self._arrTime.set_markup(markup)
     
    36893701
    36903702        self.setCurrentPage(firstPage)
     3703        #self.setCurrentPage(13)
    36913704
    36923705    def login(self, callback, pilotID, password, entranceExam):
Note: See TracChangeset for help on using the changeset viewer.