Ignore:
Timestamp:
Apr 1, 2009 1:02:56 PM (15 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:
9d4e502
Parents:
db39b2a
Message:

removing all codes.and add highlight for textcrtl

File:
1 edited

Legend:

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

    r59a7f2d r1328e03  
    8686        self.npts.SetValue(format_number(self.num_points)) 
    8787        self.npts.SetToolTipString("Number of point to plot.") 
    88         self.npts.Bind(wx.EVT_KILL_FOCUS, self._onparamEnter) 
     88        self.npts.Bind(wx.EVT_SET_FOCUS, self.onSetFocus) 
    8989        self.npts.Bind(wx.EVT_TEXT_ENTER, self._onparamEnter) 
    9090         
     
    169169                     
    170170                    ctl1.SetValue(str (format_number(value))) 
    171                     ctl1.Bind(wx.EVT_KILL_FOCUS, self._onparamEnter) 
     171                    ctl1.Bind(wx.EVT_SET_FOCUS, self.onSetFocus) 
    172172                    ctl1.Bind(wx.EVT_TEXT_ENTER,self._onparamEnter) 
    173173                    self.sizer4_4.Add(ctl1, (iy,ix),(1,1), wx.EXPAND) 
     
    183183                         
    184184                        Tctl1.SetValue(str (format_number(value))) 
    185                         Tctl1.Bind(wx.EVT_KILL_FOCUS, self._onparamEnter) 
     185                        Tctl1.Bind(wx.EVT_SET_FOCUS, self.onSetFocus) 
    186186                        Tctl1.Bind(wx.EVT_TEXT_ENTER,self._onparamEnter) 
    187187                        self.sizer4_4.Add(Tctl1, (iy,ix),(1,1), 
     
    198198                                            style=wx.TE_PROCESS_ENTER) 
    199199                        Tctl2.SetValue(str (format_number(value))) 
    200                         Tctl2.Bind(wx.EVT_KILL_FOCUS, self._onparamEnter) 
     200                        Tctl2.Bind(wx.EVT_SET_FOCUS, self.onSetFocus) 
    201201                        Tctl2.Bind(wx.EVT_TEXT_ENTER,self._onparamEnter) 
    202202                        self.sizer4_4.Add(Tctl2, (iy,ix),(1,1), 
     
    383383                 
    384384                ctl1.SetValue(str (format_number(value))) 
    385                 ctl1.Bind(wx.EVT_KILL_FOCUS, self._onparamEnter) 
     385                ctl1.Bind(wx.EVT_SET_FOCUS, self.onSetFocus) 
    386386                ctl1.Bind(wx.EVT_TEXT_ENTER,self._onparamEnter) 
     387                 
    387388                sizer.Add(ctl1, (iy,ix),(1,1), wx.EXPAND) 
    388389         
Note: See TracChangeset for help on using the changeset viewer.