Changeset cdbe88e in sasview


Ignore:
Timestamp:
Apr 28, 2009 1:20:45 PM (16 years ago)
Author:
Jae Cho <jhjcho@…>
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:
5dc80a0
Parents:
e45a565
Message:

fixed a bug around shape from menu bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/basepage.py

    rdf61301 rcdbe88e  
    818818                    break 
    819819        else: 
    820             ## Select the model from the combobox 
     820 
     821            ## Select the model from the menu 
    821822            class_name = model.__class__ 
    822823            name = model.name 
     
    824825            items = self.formfactorbox.GetItems() 
    825826     
    826             for k, list in self.model_list_box.iteritems(): 
     827            for k, list in self.model_list_box.iteritems():           
    827828                if k in["P(Q)*S(Q)","Shapes" ] and class_name in self.model_list_box["Shapes"]: 
    828                      
    829829                    if class_name in self.model_list_box["P(Q)*S(Q)"]: 
    830830                        self.structurebox.Enable() 
     831                        self.structurebox.SetSelection(0) 
    831832                    else: 
    832833                        self.structurebox.Disable() 
     
    846847                    self.shape_indep_rbutton.SetValue(True) 
    847848                elif k == "Structure Factors": 
    848                      self.struct_rbutton.SetValue(True) 
     849                    self.struct_rbutton.SetValue(True) 
    849850                else: 
    850851                    self.plugin_rbutton.SetValue(True) 
Note: See TracChangeset for help on using the changeset viewer.