Changeset 6244c2c in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Oct 19, 2009 1:52:01 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:
b72b595
Parents:
1ea3488
Message:

Disabled bind of wx.evt_set and wx.evt_kill for MAC: was not working and producing exception on setting set-values.

File:
1 edited

Legend:

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

    re3a76c8 r6244c2c  
    158158            wx.TextCtrl.__init__(self, parent, id, value, pos, size, style, validator, name) 
    159159             
    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) 
     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                 
    166169            self.Bind(wx.EVT_TEXT_ENTER, parent._onparamEnter \ 
    167170                      if text_enter_callback is None else text_enter_callback) 
Note: See TracChangeset for help on using the changeset viewer.