Changeset 1144:a73548e0c689 for src/mlx/gui/flight.py
- Timestamp:
- 04/21/24 14:20:42 (13 days ago)
- Branch:
- python3
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r1143 r1144 2427 2427 xscale = 0.0, yscale = 0.0) 2428 2428 2429 table = Gtk.Table( 7, 3)2429 table = Gtk.Table(8, 3) 2430 2430 table.set_row_spacings(4) 2431 2431 table.set_col_spacings(16) … … 2436 2436 row = 0 2437 2437 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 2438 2448 self._crewLabel = label = Gtk.Label(xstr("payload_crew")) 2439 2449 label.set_use_underline(True) … … 2457 2467 label.set_mnemonic_widget(self._numCabinCrew) 2458 2468 2459 label = Gtk.Label(xstr("payload_crew_info") )2469 label = Gtk.Label(xstr("payload_crew_info") % (const.WEIGHT_CABIN_CREW)) 2460 2470 label.set_halign(Gtk.Align.START) 2461 2471 table.attach(label, 2, 3, row, row+1) … … 2493 2503 label.set_mnemonic_widget(self._numPassengers) 2494 2504 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)) 2496 2507 label.set_halign(Gtk.Align.START) 2497 2508 table.attach(label, 2, 3, row, row+1) … … 2638 2649 """Setup the information.""" 2639 2650 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)) 2640 2657 2641 2658 self._numCockpitCrew.set_markup("<b>" +
Note:
See TracChangeset
for help on using the changeset viewer.