Changeset a706353b in sasview for theoryview/perspectives/theory


Ignore:
Timestamp:
Sep 16, 2010 5:48:35 PM (14 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:
cf6a192
Parents:
4523b68
Message:

changed option for coremultishell model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • theoryview/perspectives/theory/basepage.py

    r4523b68 ra706353b  
    701701        self.formfactorbox.SetSelection(state.formfactorcombobox) 
    702702        if state.multi_factor != None: 
    703             self.multifactorbox.SetSelection(state.multi_factor-1) 
     703            self.multifactorbox.SetSelection(state.multi_factor) 
    704704        #draw the pnael according to the new model parameter  
    705705        self._on_select_model(event=None) 
     
    12601260        Set comboBox for muitfactor of CoreMultiShellModel 
    12611261        """ 
    1262         for idx in range(1,5): 
     1262        for idx in range(0,5): 
    12631263            self.multifactorbox.Append(str(idx),int(idx)) 
    1264             self.multifactorbox.SetSelection(0)  
     1264            self.multifactorbox.SetSelection(1)  
    12651265        self._hide_multfactor_combobox() 
    12661266         
     
    14711471                m_id = self.multifactorbox.GetCurrentSelection() 
    14721472                self.multi_factor = self.multifactorbox.GetClientData(m_id) 
    1473                 if self.multi_factor == None: self.multi_factor =0 
     1473                if self.multi_factor == None: self.multi_factor =1 
    14741474                form_factor = form_factor(int(self.multi_factor)) 
    14751475            else: 
Note: See TracChangeset for help on using the changeset viewer.