Changeset 707:27d3bbba18a7 for src/mlx/gui
- Timestamp:
- 10/25/15 08:59:21 (9 years ago)
- Branch:
- cef
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r706 r707 1810 1810 self._credentialsPassword = None 1811 1811 1812 label = gtk.Label(xstr("simbrief_extra_fuel")) 1813 label.set_use_underline(True) 1814 label.set_alignment(0.0, 0.5) 1815 table.attach(label, 0, 1, 3, 4) 1816 1817 self._extraFuel = IntegerEntry(defaultValue = 0) 1818 self._extraFuel.set_width_chars(6) 1819 self._extraFuel.set_tooltip_text(xstr("simbrief_extra_fuel_tooltip")) 1820 table.attach(self._extraFuel, 1, 2, 3, 4) 1821 label.set_mnemonic_widget(self._extraFuel) 1822 1823 table.attach(gtk.Label("kg"), 2, 3, 3, 4) 1824 1812 1825 self.addCancelFlightButton() 1813 1826 … … 1827 1840 self._rememberButton.set_active(config.rememberSimBriefPassword) 1828 1841 self._rememberButton.set_sensitive(True) 1842 1843 self._extraFuel.set_int(0) 1844 self._extraFuel.set_sensitive(True) 1829 1845 1830 1846 self._updateForwardButton() … … 1860 1876 self._password.set_sensitive(False) 1861 1877 self._rememberButton.set_sensitive(False) 1878 self._extraFuel.set_sensitive(False) 1862 1879 1863 1880 self._wizard.gui.beginBusy("Calling SimBrief...") … … 2005 2022 plan["altn"] = wizard.alternate 2006 2023 2007 plan["addedfuel"] = "2.5" # FIXME: query2024 plan["addedfuel"] = str(self._extraFuel.get_int() / 1000.0) 2008 2025 plan["origrwy"] = "" # FIXME: query 2009 2026 plan["destrwy"] = "" # FIXME: query
Note:
See TracChangeset
for help on using the changeset viewer.