Changeset e030625 in sasview
- Timestamp:
- Mar 31, 2011 8:01:41 PM (14 years ago)
- 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:
- b0e8beb
- Parents:
- 3450e7f
- Location:
- sansview/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/basepage.py
r2296316 re030625 49 49 """ 50 50 ScrolledPanel.__init__(self, parent, **kwargs) 51 PanelBase.__init__(self )51 PanelBase.__init__(self, parent) 52 52 self.SetupScrolling() 53 53 #Set window's font size -
sansview/perspectives/fitting/fitpage.py
r2296316 re030625 23 23 from basepage import PageInfoEvent 24 24 from sans.models.qsmearing import smear_selection 25 25 26 26 27 class FitPage(BasicPage): … … 38 39 """ 39 40 BasicPage.__init__(self, parent, color=color) 40 41 41 42 ## draw sizer 42 43 self._fill_datainfo_sizer() … … 141 142 #Fit button 142 143 self.btFit = wx.Button(self,wx.NewId(),'Fit', size=(88,25)) 143 self.default_bt_colour = self.btFit.GetBackgroundColour()144 self.default_bt_colour = self.btFit.GetDefaultAttributes() 144 145 self.btFit.Bind(wx.EVT_BUTTON, self._onFit,id= self.btFit.GetId()) 145 146 self.btFit.SetToolTipString("Start fitting.") … … 969 970 id=self.btFit.GetId()) 970 971 elif self.btFit.GetLabel().lower() == "fit": 971 self.btFit.SetBackgroundColour(self.default_bt_colour) 972 self.btFit.SetDefault() 973 #self.btFit.SetBackgroundColour(self.default_bt_colour) 972 974 self.btFit.Bind(event=wx.EVT_BUTTON, handler=self._onFit, 973 975 id=self.btFit.GetId()) … … 1047 1049 self._draw_model() 1048 1050 if event != None: 1049 1050 1051 ## post state to fit panel 1051 event = PageInfoEvent(page = self)1052 wx.PostEvent(self.parent, event)1052 new_event = PageInfoEvent(page = self) 1053 wx.PostEvent(self.parent, new_event) 1053 1054 #update list of plugins if new plugin is available 1054 1055 if self.plugin_rbutton.GetValue():
Note: See TracChangeset
for help on using the changeset viewer.