Changeset f74673c in sasview for fittingview


Ignore:
Timestamp:
Mar 22, 2012 4:37:07 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
560c4d8
Parents:
ae56c90
Message:

Sort the model lists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/basepage.py

    rd2c4c06 rf74673c  
    19751975            item must model class 
    19761976        """ 
     1977        mlist = [] 
    19771978        for models in list: 
    19781979            model= models() 
     
    19811982                if hasattr(model, "name"): 
    19821983                    name = model.name 
    1983                 combobox.Append(name,models) 
     1984                mlist.append( (name, models) ) 
     1985                 
     1986        # Sort the models 
     1987        mlist_sorted = sorted(mlist) 
     1988        for item in mlist_sorted: 
     1989            combobox.Append(item[0],item[1]) 
    19841990        return 0 
    19851991     
Note: See TracChangeset for help on using the changeset viewer.