Changeset 334:7978a2496c31 for src/mlx/gui
- Timestamp:
- 11/13/12 16:52:27 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/monitor.py
r314 r334 23 23 """Construct the monitor window.""" 24 24 super(MonitorWindow, self).__init__() 25 25 26 26 self._gui = gui 27 27 … … 48 48 self._paused = gtk.Label("PAUSED") 49 49 table.attach(self._paused, 2, 4, 0, 1) 50 50 51 51 self._trickMode = gtk.Label("TRICKMODE") 52 52 table.attach(self._trickMode, 4, 6, 0, 1, xoptions = 0) 53 53 54 54 self._overspeed = gtk.Label("OVERSPEED") 55 55 table.attach(self._overspeed, 6, 8, 0, 1) 56 56 57 57 self._stalled = gtk.Label("STALLED") 58 58 table.attach(self._stalled, 8, 10, 0, 1) 59 59 60 60 self._onTheGround = gtk.Label("ONTHEGROUND") 61 61 table.attach(self._onTheGround, 10, 12, 0, 1) 62 62 63 63 (label, self._zfw) = self._createLabeledEntry("ZFW:", 6) 64 64 table.attach(label, 0, 1, 1, 2) … … 188 188 table.attach(self._position, 7, 10, 6, 7) 189 189 190 self._xpdrC = gtk.Label("XPDR CHARLIE") 191 table.attach(self._xpdrC, 10, 12, 6, 7) 192 190 193 alignment.add(table) 191 194 … … 202 205 - the box 203 206 - the entry.""" 204 207 205 208 alignment = gtk.Alignment(xalign = 1.0, yalign = 0.5, xscale = 1.0) 206 209 alignment.set_padding(padding_top = 0, padding_bottom = 0, … … 262 265 self._windDirection.set_text("-") 263 266 self._position.set_text("-") 267 self._xpdrC.set_sensitive(False) 264 268 else: 265 269 self._timestamp.set_text(time.strftime("%H:%M:%S", … … 294 298 for (_tank, fuel) in aircraftState.fuel: 295 299 if fuelStr: fuelStr += ", " 296 fuelStr += "%.0f" % (fuel,) 300 fuelStr += "%.0f" % (fuel,) 297 301 self._fuel.set_text(fuelStr) 298 302 … … 329 333 self._landingLightsOn.set_text("LANDING") 330 334 self._landingLightsOn.set_sensitive(aircraftState.landingLightsOn is True) 331 335 332 336 self._pitotHeatOn.set_sensitive(aircraftState.pitotHeatOn) 333 337 self._parking.set_sensitive(aircraftState.parking) … … 340 344 self._position.set_text(util.getCoordinateString((aircraftState.latitude, 341 345 aircraftState.longitude))) 346 self._xpdrC.set_sensitive(aircraftState.xpdrC) 342 347 343 348 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.