Changeset 7415cbe in sasview


Ignore:
Timestamp:
Apr 12, 2012 12:39:04 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:
79411b2
Parents:
e0050a5
Message:

fixed a bug that crashes sansview on_selete model in win7 (within python env)

File:
1 edited

Legend:

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

    r93f0a862 r7415cbe  
    12281228        if event != None: 
    12291229            if (event.GetEventObject() == self.formfactorbox\ 
    1230                         and self.structurebox.GetValue() != 'None')\ 
     1230                        and self.structurebox.GetLabel() != 'None')\ 
    12311231                        or event.GetEventObject() == self.structurebox\ 
    12321232                        or event.GetEventObject() == self.multifactorbox: 
     
    12521252        self.state.slit_smearer = self.slit_smearer.GetValue() 
    12531253     
    1254         self.state.structurecombobox = self.structurebox.GetValue()#.GetCurrentSelection() 
    1255         self.state.formfactorcombobox = self.formfactorbox.GetValue()#.GetCurrentSelection() 
     1254        self.state.structurecombobox = self.structurebox.GetLabel()#.GetCurrentSelection() 
     1255        self.state.formfactorcombobox = self.formfactorbox.GetLabel()#.GetCurrentSelection() 
    12561256        self.enable_fit_button() 
    12571257        if self.model != None: 
     
    13171317                if temp: 
    13181318                    self.model_list_box = temp 
    1319                     current_val = self.formfactorbox.GetValue() 
     1319                    current_val = self.formfactorbox.GetLabel() 
    13201320                    pos = self.formfactorbox.GetSelection() 
    13211321                    self._show_combox_helper() 
Note: See TracChangeset for help on using the changeset viewer.