Changeset 128:e14fcd9d9215 for src/mlx
- Timestamp:
- 04/29/12 09:52:52 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 4 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) -
src/mlx/i18n.py
r124 r128 461 461 self.add("statusicon_showmonitor", "Show monitor window") 462 462 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") 465 465 466 466 self.add("update_title", "Update") … … 922 922 self.add("statusicon_showmonitor", "Mutasd a monitor ablakot") 923 923 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") 926 926 927 927 self.add("update_title", "Frissítés")
Note:
See TracChangeset
for help on using the changeset viewer.