Ignore:
Timestamp:
04/21/24 14:20:42 (13 days ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

More info is provided for the weight calculations (re #386)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/flight.py

    r1143 r1144  
    24272427                                  xscale = 0.0, yscale = 0.0)
    24282428
    2429         table = Gtk.Table(7, 3)
     2429        table = Gtk.Table(8, 3)
    24302430        table.set_row_spacings(4)
    24312431        table.set_col_spacings(16)
     
    24362436        row  = 0
    24372437
     2438        label = Gtk.Label(xstr("payload_flight_type"))
     2439        label.set_alignment(0.0, 0.5)
     2440        table.attach(label, 0, 1, row, row+1)
     2441
     2442        self._flightType = label = Gtk.Label(xstr("flighttype_scheduled"))
     2443        label.set_alignment(1.0, 0.5)
     2444        table.attach(label, 1, 2, row, row + 1)
     2445
     2446        row += 1
     2447
    24382448        self._crewLabel = label = Gtk.Label(xstr("payload_crew"))
    24392449        label.set_use_underline(True)
     
    24572467        label.set_mnemonic_widget(self._numCabinCrew)
    24582468
    2459         label = Gtk.Label(xstr("payload_crew_info"))
     2469        label = Gtk.Label(xstr("payload_crew_info") % (const.WEIGHT_CABIN_CREW))
    24602470        label.set_halign(Gtk.Align.START)
    24612471        table.attach(label, 2, 3, row, row+1)
     
    24932503        label.set_mnemonic_widget(self._numPassengers)
    24942504
    2495         label = Gtk.Label(xstr("payload_pax_info"))
     2505        self._paxInfo = label = Gtk.Label(xstr("payload_pax_info") % (
     2506            const.WEIGHT_PASSENGER, const.WEIGHT_CHILD, const.WEIGHT_INFANT))
    24962507        label.set_halign(Gtk.Align.START)
    24972508        table.attach(label, 2, 3, row, row+1)
     
    26382649        """Setup the information."""
    26392650        bookedFlight = self._wizard._bookedFlight
     2651
     2652        self._flightType.set_text(xstr("flighttype_" +
     2653                                       const.flightType2string(bookedFlight.flightType)))
     2654
     2655        self._paxInfo.set_text(xstr("payload_pax_info") % (
     2656            bookedFlight.passengerWeight, const.WEIGHT_CHILD, const.WEIGHT_INFANT))
    26402657
    26412658        self._numCockpitCrew.set_markup("<b>" +
Note: See TracChangeset for help on using the changeset viewer.