Ignore:
Timestamp:
09/25/16 06:34:33 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The default column descriptors are moved to the FlightList (re #307).

File:
1 edited

Legend:

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

    r817 r818  
    5959    This is a complete widget with a scroll window. It is alignment centered
    6060    horizontally and expandable vertically."""
    61     def __init__(self, columnDescriptors, popupMenuProducer = None,
    62                  widthRequest = None):
     61
     62    defaultColumnDescriptors = [
     63        ColumnDescriptor("callsign", xstr("flightsel_no")),
     64        ColumnDescriptor("departureTime", xstr("flightsel_deptime"),
     65                         sortable = True),
     66        ColumnDescriptor("departureICAO", xstr("flightsel_from"),
     67                         sortable = True),
     68        ColumnDescriptor("arrivalICAO", xstr("flightsel_to"), sortable = True)
     69    ]
     70
     71    def __init__(self, columnDescriptors = defaultColumnDescriptors,
     72                 popupMenuProducer = None, widthRequest = None):
    6373        """Construct the flight list with the given column descriptors."""
    6474
Note: See TracChangeset for help on using the changeset viewer.