Changeset f4bbb07 in sasview


Ignore:
Timestamp:
Jun 22, 2011 4:24:35 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:
29bf83b
Parents:
94b4cf78
Message:

fit button bind self method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpage.py

    r94b4cf78 rf4bbb07  
    149149        self.btFit = wx.Button(self,wx.NewId(),'Fit', size=(88,25)) 
    150150        self.default_bt_colour =  self.btFit.GetDefaultAttributes() 
    151         self.btFit.Bind(wx.EVT_BUTTON, self._onFit,id= self.btFit.GetId()) 
     151        self.Bind(wx.EVT_BUTTON, self._onFit,id= self.btFit.GetId()) 
    152152        self.btFit.SetToolTipString("Start fitting.") 
    153153         
     
    10161016        bind the fit button to either fit handler or stop fit handler 
    10171017        """ 
    1018         self.btFit.Unbind(event=wx.EVT_BUTTON, id= self.btFit.GetId()) 
     1018        self.Unbind(event=wx.EVT_BUTTON, id= self.btFit.GetId()) 
    10191019        if self.btFit.GetLabel().lower() == "stop": 
    10201020            self.fit_started = True 
    10211021            if not self.is_mac: 
    10221022                self.btFit.SetForegroundColour('red') 
    1023             self.btFit.Bind(event=wx.EVT_BUTTON, handler=self._StopFit, 
     1023            self.Bind(event=wx.EVT_BUTTON, handler=self._StopFit, 
    10241024                             id=self.btFit.GetId()) 
    10251025        elif self.btFit.GetLabel().lower() == "fit": 
     
    10291029                self.btFit.SetForegroundColour('black') 
    10301030            #self.btFit.SetBackgroundColour(self.default_bt_colour) 
    1031             self.btFit.Bind(event=wx.EVT_BUTTON, handler=self._onFit,  
     1031            self.Bind(event=wx.EVT_BUTTON, handler=self._onFit,  
    10321032                            id=self.btFit.GetId()) 
    10331033        else: 
Note: See TracChangeset for help on using the changeset viewer.