Changeset 156a0b2 in sasview for sansview/perspectives


Ignore:
Timestamp:
Oct 20, 2009 4:44:53 PM (15 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:
7ef319e
Parents:
6c13861
Message:

Removed Layout onSetFocus and re- bind evt_set and evt_kill.
Need look at highlight evnts

File:
1 edited

Legend:

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

    r6244c2c r156a0b2  
    158158            wx.TextCtrl.__init__(self, parent, id, value, pos, size, style, validator, name) 
    159159             
    160             #On Mac, wx.evt.set_focus not work, so skip it. 
    161             if sys.platform.count("darwin") <= 0: 
    162                 # Bind appropriate events 
    163                 self._on_set_focus_callback = parent.onSetFocus \ 
    164                           if set_focus_callback is None else set_focus_callback 
    165                 self.Bind(wx.EVT_SET_FOCUS, self._on_set_focus) 
    166                 self.Bind(wx.EVT_KILL_FOCUS, parent._onparamEnter \ 
    167                           if kill_focus_callback is None else kill_focus_callback) 
    168                  
     160            # Bind appropriate events 
     161            self._on_set_focus_callback = parent.onSetFocus \ 
     162                      if set_focus_callback is None else set_focus_callback 
     163            self.Bind(wx.EVT_SET_FOCUS, self._on_set_focus) 
     164            self.Bind(wx.EVT_KILL_FOCUS, parent._onparamEnter \ 
     165                      if kill_focus_callback is None else kill_focus_callback)                 
    169166            self.Bind(wx.EVT_TEXT_ENTER, parent._onparamEnter \ 
    170167                      if text_enter_callback is None else text_enter_callback) 
     
    545542                    item[4].Clear() 
    546543                    item[4].Hide() 
    547         self.Layout() 
     544        ##Is this layout necessary? Had a problem w/MAC. 
     545        #self.Layout() 
    548546        return 
    549547     
Note: See TracChangeset for help on using the changeset viewer.