Changeset 128:e14fcd9d9215 for src/mlx/gui
- Timestamp:
- 04/29/12 09:52:52 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r124 r128 390 390 self._reconnecting = False 391 391 self._statusbar.updateConnection(False, False) 392 self._weightHelp.disable() 392 393 393 394 def addFlightLogLine(self, timeStr, line): -
src/mlx/gui/info.py
r127 r128 132 132 """Get the list of delay codes checked by the user.""" 133 133 codes = [] 134 for index in range(0, len(FlightInfo._delayCodes)): 134 delayCodes = FlightInfo._delayCodes() 135 for index in range(0, len(delayCodes)): 135 136 if self._delayCodeWidgets[index].get_active(): 136 codes.append( FlightInfo._delayCodes[index][0])137 codes.append(delayCodes[index][0]) 137 138 return codes 138 139 -
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.