Changeset 117:af3d52b9adc4 for src/mlx/gui
- Timestamp:
- 04/28/12 12:25:48 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx/gui
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r107 r117 799 799 """Finalize the payload page.""" 800 800 self._cargoWeight.set_sensitive(False) 801 self._wizard.gui.initializeWeightHelp() 801 802 802 803 def calculateZFW(self): … … 1908 1909 self._payloadPage = PayloadPage(self) 1909 1910 self._pages.append(self._payloadPage) 1911 self._payloadIndex = len(self._pages) 1910 1912 self._pages.append(TimePage(self)) 1911 1913 self._routePage = RoutePage(self) … … 1915 1917 self._arrivalBriefingPage = BriefingPage(self, False) 1916 1918 self._pages.append(self._arrivalBriefingPage) 1919 self._arrivalBriefingIndex = len(self._pages) 1917 1920 self._takeoffPage = TakeoffPage(self) 1918 1921 self._pages.append(self._takeoffPage) -
src/mlx/gui/gui.py
r110 r117 8 8 from mlx.gui.flight import Wizard 9 9 from mlx.gui.monitor import MonitorWindow 10 from mlx.gui.weighthelp import WeightHelp 10 11 11 12 import mlx.const as const … … 88 89 self._flightInfo.disable() 89 90 91 self._weightHelp = WeightHelp(self) 92 label = gtk.Label(xstr("tab_weight_help")) 93 label.set_use_underline(True) 94 label.set_tooltip_text(xstr("tab_weight_help_tooltip")) 95 self._notebook.append_page(self._weightHelp, label) 96 90 97 (logWidget, self._logView) = self._buildLogWidget() 91 98 label = gtk.Label(xstr("tab_log")) … … 112 119 window.show_all() 113 120 self._wizard.grabDefault() 121 self._weightHelp.reset() 122 self._weightHelp.disable() 114 123 115 124 self._mainWindow = window … … 353 362 self.resetFlightStatus() 354 363 364 self._weightHelp.reset() 365 self._weightHelp.disable() 355 366 self._wizard.reset() 356 367 self._notebook.set_current_page(0) … … 518 529 """Begin a period of background processing.""" 519 530 self._wizard.set_sensitive(False) 531 self._weightHelp.set_sensitive(False) 520 532 self._mainWindow.get_window().set_cursor(self._busyCursor) 521 533 self._statusbar.updateBusyState(message) … … 524 536 """End a period of background processing.""" 525 537 self._mainWindow.get_window().set_cursor(None) 538 self._weightHelp.set_sensitive(True) 526 539 self._wizard.set_sensitive(True) 527 540 self._statusbar.updateBusyState(None) 541 542 def initializeWeightHelp(self): 543 """Initialize the weight help tab.""" 544 self._weightHelp.reset() 545 self._weightHelp.enable() 528 546 529 547 def _writeStdIO(self):
Note:
See TracChangeset
for help on using the changeset viewer.