Changeset 128:e14fcd9d9215 for src/mlx/gui/statusicon.py
- Timestamp:
- 04/29/12 09:52:52 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/statusicon.py
r114 r128 143 143 def _updateFlightStatus(self): 144 144 """Update the flight status.""" 145 stage = "-" if self._stage is None \145 stage = u"-" if self._stage is None \ 146 146 else xstr("flight_stage_" + const.stage2string(self._stage)) 147 147 … … 152 152 153 153 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)) 157 160 else: 158 161 if self._noGoReason is not None: 159 162 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" %\ 161 164 (const.VERSION, xstr("statusicon_stage"), stage, 162 165 xstr("statusicon_rating"), rating)
Note:
See TracChangeset
for help on using the changeset viewer.