Changeset acc254f in sasview


Ignore:
Timestamp:
Jun 25, 2012 4:32:58 PM (12 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:
1da574d
Parents:
5a5bb29
Message:

more fix: dataoperator on MAC

File:
1 edited

Legend:

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

    r5a5bb29 racc254f  
    167167        if ON_MAC: 
    168168            ctrl.Enable(enable) 
    169             chidren = ctrl.GetChildren() 
     169            children = ctrl.GetChildren() 
    170170            if len(children) > 0: 
    171171                ctrl.GetChildren()[0].SetBackGroundColour(\ 
     
    217217        """ 
    218218        if ON_MAC: 
    219             chidren = ctrl.GetChildren() 
     219            children = ctrl.GetChildren() 
    220220            if len(children) > 0: 
    221221                ctrl.GetChildren()[0].SetBackgroundColour(color)   
     
    252252            self.output.name = str(self.data_namectr.GetValue()) 
    253253        self.draw_output(self.output) 
     254        self.name_sizer.Layout() 
    254255         
    255256    def on_select_data1(self, event=None): 
     
    297298        item = event.GetEventObject() 
    298299        text = item.GetValue().strip().lower() 
     300        pos = item.GetCurrentSelection() 
     301        data = item.GetClientData(pos) 
    299302        self._show_numctrl(self.numberctr, text=='number') 
    300          
    301         pos = item.GetSelection() 
    302         data = item.GetClientData(pos) 
    303303        content = "?" 
    304304        if not (self.numberctr.IsShown() and self.numberctr.IsEnabled()): 
     
    319319                    data = None 
    320320                item.SetClientData(pos, content) 
     321                 
    321322            self.put_text_pic(self.data2_pic, content)    
    322323        self.check_data_inputs() 
     
    333334        pic.add_text() 
    334335        pic.draw() 
     336        self.name_sizer.Layout() 
    335337                   
    336338    def check_data_inputs(self): 
     
    475477        pos_pre1 = self.data1_cbox.GetCurrentSelection() 
    476478        pos_pre2 = self.data2_cbox.GetCurrentSelection() 
    477         current1 = self.data1_cbox.GetValue() 
    478         current2 = self.data2_cbox.GetValue() 
     479        current1 = self.data1_cbox.GetLabel() 
     480        current2 = self.data2_cbox.GetLabel() 
    479481        if pos_pre1 < 0: 
    480482            pos_pre1 = 0 
Note: See TracChangeset for help on using the changeset viewer.