Changeset 29bf83b in sasview


Ignore:
Timestamp:
Jun 22, 2011 4:42:02 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:
8c6a0b9
Parents:
f4bbb07
Message:

print if bound

File:
1 edited

Legend:

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

    rf4bbb07 r29bf83b  
    6464        """ 
    6565        self.btFit.SetLabel("Fit") 
    66         print "fit button" 
    6766        self.bind_fit_button() 
    6867         
     
    149148        self.btFit = wx.Button(self,wx.NewId(),'Fit', size=(88,25)) 
    150149        self.default_bt_colour =  self.btFit.GetDefaultAttributes() 
    151         self.Bind(wx.EVT_BUTTON, self._onFit,id= self.btFit.GetId()) 
     150        self.btFit.Bind(wx.EVT_BUTTON, self._onFit,id= self.btFit.GetId()) 
    152151        self.btFit.SetToolTipString("Start fitting.") 
    153152         
     
    10161015        bind the fit button to either fit handler or stop fit handler 
    10171016        """ 
    1018         self.Unbind(event=wx.EVT_BUTTON, id= self.btFit.GetId()) 
     1017        print "bind" 
     1018         
     1019        self.btFit.Unbind(event=wx.EVT_BUTTON, id= self.btFit.GetId()) 
     1020        print "unbind" 
    10191021        if self.btFit.GetLabel().lower() == "stop": 
    10201022            self.fit_started = True 
    1021             if not self.is_mac: 
    1022                 self.btFit.SetForegroundColour('red') 
    1023             self.Bind(event=wx.EVT_BUTTON, handler=self._StopFit, 
     1023            self.btFit.SetForegroundColour('red') 
     1024            self.btFit.Bind(event=wx.EVT_BUTTON, handler=self._StopFit, 
    10241025                             id=self.btFit.GetId()) 
     1026            print "bind00" 
    10251027        elif self.btFit.GetLabel().lower() == "fit": 
    10261028            self.fit_started = False 
    10271029            self.btFit.SetDefault() 
    1028             if not self.is_mac: 
    1029                 self.btFit.SetForegroundColour('black') 
     1030            self.btFit.SetForegroundColour('black') 
    10301031            #self.btFit.SetBackgroundColour(self.default_bt_colour) 
    1031             self.Bind(event=wx.EVT_BUTTON, handler=self._onFit,  
     1032            self.btFit.Bind(event=wx.EVT_BUTTON, handler=self._onFit,  
    10321033                            id=self.btFit.GetId()) 
    10331034        else: 
Note: See TracChangeset for help on using the changeset viewer.