Ignore:
Timestamp:
Dec 14, 2012 12:50:24 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:
0203ade
Parents:
aa01d07b
Message:

merging from the release 2.2.0

Location:
calculatorview/src/sans/perspectives/calculator
Files:
2 edited

Legend:

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

    r1d490fd r657e52c  
    645645        self.position = (0.4, 0.5) 
    646646        self.scale = 'linear' 
     647        self.prevXtrans = "x" 
     648        self.prevYtrans = "y" 
     649        self.viewModel = "--" 
    647650        self.subplot.set_xticks([]) 
    648651        self.subplot.set_yticks([]) 
     
    865868                dial.view.Insert("--", 0) 
    866869                dial.view.Insert("Linear y vs x", 1) 
    867                 dial.xvalue.SetValue("x") 
    868                 dial.yvalue.SetValue("y") 
    869                 dial.view.SetValue("--") 
     870                dial.setValues(self.prevXtrans, self.prevYtrans, self.viewModel) 
    870871                dial.Update() 
    871872                if dial.ShowModal() == wx.ID_OK: 
     
    918919                self.graph._yaxis_transformed("%s" % yname, "%s" % yunits) 
    919920            item.transformView() 
     921        self.prevXtrans = self.xLabel 
     922        self.prevYtrans = self.yLabel 
    920923        self.set_xscale(_xscale) 
    921924        self.set_yscale(_yscale) 
  • calculatorview/src/sans/perspectives/calculator/model_editor.py

    rea5fa58 r657e52c  
    628628        Layout msg 
    629629        """ 
    630         self._msg_box = wx.StaticText(self, -1, self._notes) 
     630        self._msg_box = wx.StaticText(self, -1, self._notes,  
     631                                      size=(PANEL_WIDTH, -1)) 
    631632        self.msg_sizer.Add(self._msg_box, 0, wx.LEFT, 10)   
    632633                     
     
    717718        if len(title) > 20: 
    718719            s_title = title[0:19] + '...' 
    719         self._notes += "Model function name set " 
     720        self._notes += "Model function name is set " 
    720721        self._notes += "to %s. \n" % str(s_title) 
    721722        return True 
     
    783784                pass 
    784785        else: 
    785             msg = "Successful!!!" 
     786            msg = "Successful! " 
    786787            msg += "  " + self._notes 
    787788            msg += " Please look for it in the Customized Models." 
Note: See TracChangeset for help on using the changeset viewer.