Changeset cce182ae in sasview


Ignore:
Timestamp:
Apr 5, 2012 3:18:50 PM (13 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:
0aca693
Parents:
5559171
Message:

trying to fix mac fitpanel problem

File:
1 edited

Legend:

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

    r93f0a862 rcce182ae  
    898898        self.state.plugin_rbutton = self.plugin_rbutton.GetValue() 
    899899        #model combobox 
    900         self.state.structurebox = self.structurebox.GetValue()#.GetSelection() 
    901         self.state.formfactorbox = self.formfactorbox.GetValue()#.GetSelection() 
     900        self.state.structurebox = self.structurebox.GetLabel()#.GetSelection() 
     901        self.state.formfactorbox = self.formfactorbox.GetLabel()#.GetSelection() 
    902902         
    903903        self.state.enable2D = copy.deepcopy(self.enable2D) 
     
    10691069            formfactor_pos = 0 
    10701070            for ind_form in range(self.formfactorbox.GetCount()): 
    1071                 if self.formfactorbox.GetString(ind_form).count(state.formfactorcombobox)>0: 
     1071                if self.formfactorbox.GetString(ind_form) == \ 
     1072                                        state.formfactorcombobox: 
    10721073                    formfactor_pos = int(ind_form) 
    10731074                    break 
     
    10811082            structfactor_pos = 0 
    10821083            for ind_struct in range(self.structurebox.GetCount()): 
    1083                 if self.structurebox.GetString(ind_struct).count(state.structurecombobox)>0: 
     1084                if self.structurebox.GetString(ind_struct) == \ 
     1085                                        state.structurecombobox: 
    10841086                    structfactor_pos = int(ind_struct) 
    10851087                    break 
     
    14471449        self.state.struct_rbutton = self.struct_rbutton.GetValue() 
    14481450        self.state.plugin_rbutton = self.plugin_rbutton.GetValue() 
    1449         self.state.structurebox= self.structurebox.GetValue()#.GetCurrentSelection() 
    1450         self.state.formfactorbox = self.formfactorbox.GetValue()#.GetCurrentSelection() 
     1451        self.state.structurebox= self.structurebox.GetLabel()#.GetCurrentSelection() 
     1452        self.state.formfactorbox = self.formfactorbox.GetLabel()#.GetCurrentSelection() 
    14511453        
    14521454        #self._undo.Enable(True) 
Note: See TracChangeset for help on using the changeset viewer.