Changeset 2bd55e8 in sasview


Ignore:
Timestamp:
Jun 13, 2012 7:43:24 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:
9ab366a
Parents:
6f65614
Message:

fixed numbering problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/data_operator.py

    r6c88acd r2bd55e8  
    431431            self.data2_cbox.SetClientData(pos2, None) 
    432432            pos3 = self.data2_cbox.Append("Number") 
    433             self.data2_cbox.SetClientData(pos3, None) 
     433            val = None 
     434            if self.numberctr.IsShown(): 
     435                try: 
     436                    val = float(self.numberctr.GetLabel()) 
     437                except: 
     438                    val = None 
     439            self.data2_cbox.SetClientData(pos3, vale) 
    434440            return 
    435441        pos1 = self.data1_cbox.Append('Select Data') 
     
    440446        self.data2_cbox.SetClientData(pos2, None) 
    441447        pos3 = self.data2_cbox.Append("Number") 
    442         self.data2_cbox.SetClientData(pos3, None) 
     448        val = None 
     449        if self.numberctr.IsShown(): 
     450            try: 
     451                val = float(self.numberctr.GetLabel()) 
     452            except: 
     453                val = None 
     454        self.data2_cbox.SetClientData(pos3, val) 
    443455        dnames = [dstate.data.name for dstate in self._data.values()] 
    444456        ind = numpy.argsort(dnames) 
Note: See TracChangeset for help on using the changeset viewer.