Changeset 164c7d0 in sasview for prview


Ignore:
Timestamp:
Jun 13, 2009 8:53:28 AM (15 years ago)
Author:
Mathieu Doucet <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:
009f827
Parents:
a00ee4c
Message:

prview: fixed a couple of problems with explore dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prview/perspectives/pr/explore_dialog.py

    ra00ee4c r164c7d0  
    167167        self._recalc() 
    168168        # Graph the default output curve 
    169         self._on_output_selected(None) 
     169        self._plot_output() 
    170170         
    171171    class Event: 
     
    180180        dmax   = 0 
    181181                 
    182     def _get_values(self, event): 
     182    def _get_values(self, event=None): 
    183183        """ 
    184184            Invoked when the user changes a value of the form. 
     
    226226        # otherwise return None 
    227227        if flag: 
    228             event.Skip(True) 
     228            if event is not None: 
     229                event.Skip(True) 
    229230            return content_event 
    230231        else: 
     
    277278        sizer_params.Add(self.npts_ctl,   (iy,ix), (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
    278279        self.npts_ctl.SetValue("%g" % DEFAULT_NPTS) 
    279         self.npts_ctl.Bind(wx.EVT_KILL_FOCUS, self._onTextEnter) 
     280        self.npts_ctl.Bind(wx.EVT_KILL_FOCUS, self._recalc) 
    280281         
    281282        ix += 1 
     
    285286        sizer_params.Add(self.dmin_ctl,   (iy,ix), (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
    286287        self.dmin_ctl.SetValue(str(self._default_min)) 
    287         self.dmin_ctl.Bind(wx.EVT_KILL_FOCUS, self._onTextEnter) 
     288        self.dmin_ctl.Bind(wx.EVT_KILL_FOCUS, self._recalc) 
    288289         
    289290        ix += 1 
     
    293294        sizer_params.Add(self.dmax_ctl,   (iy,ix), (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
    294295        self.dmax_ctl.SetValue(str(self._default_max)) 
    295         self.dmax_ctl.Bind(wx.EVT_KILL_FOCUS, self._onTextEnter) 
     296        self.dmax_ctl.Bind(wx.EVT_KILL_FOCUS, self._recalc) 
    296297 
    297298 
     
    320321        sizer_button.Add((20, 20), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 
    321322        button_OK = wx.Button(self, wx.ID_OK, "Close") 
    322         self.Bind(wx.EVT_BUTTON, self.checkValues, button_OK) 
    323323        sizer_button.Add(button_OK, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 
    324324         
Note: See TracChangeset for help on using the changeset viewer.