Changeset 0806def in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Mar 24, 2011 1:58:28 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
58e0c83
Parents:
dfd3577
Message:

edit fit button color

File:
1 edited

Legend:

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

    rb29e47e r0806def  
    8080            self.Layout() 
    8181            return 
    82         #if self.engine_type =="park": 
    83         #    self.btFit.SetLabel("Fit") 
    84         #    self.bind_fit_button() 
    8582        for item in self.parameters: 
    8683            if self.engine_type =="scipy" : 
     
    197194        #Fit button 
    198195        self.btFit = wx.Button(self,wx.NewId(),'Fit', size=(88,25)) 
     196        self.default_bt_colour = self.btFit.GetBackgroundColour() 
    199197        self.btFit.Bind(wx.EVT_BUTTON, self._onFit,id= self.btFit.GetId()) 
    200198        self.btFit.SetToolTipString("Start fitting.") 
     
    973971        self.btFit.Unbind(event=wx.EVT_BUTTON, id= self.btFit.GetId()) 
    974972        if self.btFit.GetLabel().lower() == "stop": 
     973            self.btFit.SetBackgroundColour('red') 
    975974            self.btFit.Bind(event=wx.EVT_BUTTON, handler=self._StopFit, 
    976975                             id=self.btFit.GetId()) 
    977976        elif self.btFit.GetLabel().lower() == "fit": 
     977            self.btFit.SetBackgroundColour(self.default_bt_colour) 
    978978            self.btFit.Bind(event=wx.EVT_BUTTON, handler=self._onFit,  
    979979                            id=self.btFit.GetId()) 
Note: See TracChangeset for help on using the changeset viewer.