Changeset 128:e14fcd9d9215 for src


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

Various small fixes

Location:
src/mlx
Files:
4 edited

Legend:

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

    r124 r128  
    390390        self._reconnecting = False
    391391        self._statusbar.updateConnection(False, False)
     392        self._weightHelp.disable()
    392393           
    393394    def addFlightLogLine(self, timeStr, line):
  • src/mlx/gui/info.py

    r127 r128  
    132132        """Get the list of delay codes checked by the user."""
    133133        codes =  []
    134         for index in range(0, len(FlightInfo._delayCodes)):
     134        delayCodes = FlightInfo._delayCodes()
     135        for index in range(0, len(delayCodes)):
    135136            if self._delayCodeWidgets[index].get_active():
    136                 codes.append(FlightInfo._delayCodes[index][0])
     137                codes.append(delayCodes[index][0])
    137138        return codes
    138139           
  • src/mlx/gui/statusicon.py

    r114 r128  
    143143    def _updateFlightStatus(self):
    144144        """Update the flight status."""
    145         stage = "-" if self._stage is None \
     145        stage = u"-" if self._stage is None \
    146146                else xstr("flight_stage_" + const.stage2string(self._stage))
    147147       
     
    152152
    153153        if appIndicator:
    154             self._stageMenuItem.set_label("%s %s" % (xstr("statusicon_stage"), stage))
    155             self._ratingMenuItem.set_label("%s: %s" %
    156                                            (xstr("statusicon_rating"), rating))
     154            self._stageMenuItem.set_label("%s: %s" % \
     155                                          (xstr("statusicon_stage"),
     156                                           stage))
     157            self._ratingMenuItem.set_label("%s: %s" % \
     158                                           (xstr("statusicon_rating"),
     159                                            rating))
    157160        else:
    158161            if self._noGoReason is not None:
    159162                rating = '<span foreground="red">' + rating + '</span>'
    160             markup = "MAVA Logger X %s\n\n%s: %s\n%s: %s" %\
     163            markup = u"MAVA Logger X %s\n\n%s: %s\n%s: %s" %\
    161164                     (const.VERSION, xstr("statusicon_stage"), stage,
    162165                      xstr("statusicon_rating"), rating)
  • src/mlx/i18n.py

    r124 r128  
    461461        self.add("statusicon_showmonitor", "Show monitor window")
    462462        self.add("statusicon_quit", "Quit")
    463         self.add("statusicon_stage", "Stage:")
    464         self.add("statusicon_rating", "Rating:")
     463        self.add("statusicon_stage", "Stage")
     464        self.add("statusicon_rating", "Rating")
    465465
    466466        self.add("update_title", "Update")
     
    922922        self.add("statusicon_showmonitor", "Mutasd a monitor ablakot")
    923923        self.add("statusicon_quit", "Kilépés")
    924         self.add("statusicon_stage", "Fázis:")
    925         self.add("statusicon_rating", "Pontszám:")
     924        self.add("statusicon_stage", u"Fázis")
     925        self.add("statusicon_rating", u"Pontszám")
    926926
    927927        self.add("update_title", "Frissítés")
Note: See TracChangeset for help on using the changeset viewer.