Changeset df566e8 in sasview for fittingview


Ignore:
Timestamp:
Oct 14, 2011 12:27:40 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:
2170921d
Parents:
62ffd8d
Message:

refresh layout on check buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/simfitpage.py

    r53fc5ad9 rdf566e8  
    202202             
    203203        self._update_easy_setup_cb() 
     204        self.Refresh() 
    204205         
    205206    def check_model_name(self,event): 
     
    233234        if len(self.model_list)==len(self.model_toFit): 
    234235            self.cb1.SetValue(True) 
     236            self.Layout() 
    235237            return 
    236238        else: 
    237239            self.cb1.SetValue(False) 
     240            self.Layout() 
    238241             
    239242    def _update_easy_setup_cb(self):    
     
    652655        sizer_button = wx.BoxSizer(wx.HORIZONTAL) 
    653656           
    654         self.btFit = wx.Button(self,wx.NewId(),'Fit') 
     657        self.btFit = wx.Button(self,wx.NewId(),'Fit', size=wx.DefaultSize) 
    655658        self.btFit.Bind(wx.EVT_BUTTON, self.onFit,id= self.btFit.GetId()) 
    656659        self.btFit.SetToolTipString("Perform fit.") 
     
    662665         
    663666        sizer_button.Add(text_hint,  wx.RIGHT|wx.EXPAND, 10) 
    664         sizer_button.Add(self.btFit, 0, wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 10) 
     667        sizer_button.Add(self.btFit, 0, wx.LEFT|wx.ADJUST_MINSIZE, 10) 
    665668         
    666669        boxsizer1.Add(sizer_button, flag= wx.TOP|wx.BOTTOM,border=10) 
Note: See TracChangeset for help on using the changeset viewer.