Changeset 3d250da3 in sasview


Ignore:
Timestamp:
Apr 2, 2015 10:46:38 AM (4 years ago)
Author:
Doucet, Mathieu <doucetm@…>
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:
0fa825c
Parents:
5f0be1f
Message:

Re #397 Removing breaking EVT_KILL_FOCUS callback.

Location:
src/sas
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/pr/explore_dialog.py

    ra862cea0 r3d250da3  
    4545    of D_max 
    4646    """ 
     47    ## Title for plottools 
     48    window_caption = "D Explorer" 
     49 
    4750    def __init__(self, d_min, d_max, parent, id= -1, color=None, \ 
    4851                 dpi=None, style=wx.NO_FULL_REPAINT_ON_RESIZE, **kwargs): 
     
    257260        or when a new computation is finished. 
    258261        """ 
    259         self.npts_ctl.SetFocus() 
    260262        # Get the output type selection 
    261263        output_type = self.output_box.GetString(self.output_box.GetSelection()) 
     
    305307                         wx.EXPAND | wx.ADJUST_MINSIZE, 0) 
    306308        self.npts_ctl.SetValue("%g" % DEFAULT_NPTS) 
    307         self.npts_ctl.Bind(wx.EVT_KILL_FOCUS, self._recalc) 
    308309 
    309310        ix += 1 
     
    315316                         wx.EXPAND | wx.ADJUST_MINSIZE, 0) 
    316317        self.dmin_ctl.SetValue(str(self._default_min)) 
    317         self.dmin_ctl.Bind(wx.EVT_KILL_FOCUS, self._recalc) 
    318318 
    319319        ix += 1 
     
    325325                         wx.EXPAND | wx.ADJUST_MINSIZE, 0) 
    326326        self.dmax_ctl.SetValue(str(self._default_max)) 
    327         self.dmax_ctl.Bind(wx.EVT_KILL_FOCUS, self._recalc) 
    328  
    329327 
    330328        # Ouput selection box 
     
    368366        """ 
    369367        Not implemented 
     368        """ 
     369        pass 
     370 
     371    def send_focus_to_datapanel(self, name): 
     372        """ 
     373            The GUI manager sometimes calls this method 
     374            TODO: refactor this 
    370375        """ 
    371376        pass 
  • src/sas/perspectives/pr/inversion_panel.py

    rf71700b r3d250da3  
    892892            pr = self._manager._create_plot_pr() 
    893893            dialog = ExploreDialog(pr, 10, None, -1, "") 
    894             dialog.ShowModal() 
     894            dialog.Show() 
    895895        else: 
    896896            message = "No data to analyze. Please load a data set to proceed." 
  • src/sas/pr/invertor.py

    r5a7d933 r3d250da3  
    537537            # number of terms 
    538538            best_alpha, _, _ = self.estimate_alpha(self.nfunc) 
     539            logging.warning("Invertor.estimate_numterms: %s" % sys.exc_value) 
    539540            return self.nfunc, best_alpha, "Could not estimate number of terms" 
    540541 
Note: See TracChangeset for help on using the changeset viewer.