Changeset 2d603a2 in sasview for sansview


Ignore:
Timestamp:
Jun 28, 2011 6:07:14 PM (13 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:
d5c2f4d
Parents:
d8c54ead
Message:

trying to fix mac bug in copy and paste

File:
1 edited

Legend:

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

    rd8c54ead r2d603a2  
    535535        Copy Parameter values to the clipboad 
    536536        """ 
    537         flag = self.get_copy() 
    538537        if event != None: 
    539538            event.Skip() 
     539        # It seems MAC needs wxCallAfter 
     540        flag = wx.CallAfter(self.get_copy) 
     541         
    540542        # messages depending on the flag 
    541543        self._copy_info(flag) 
     
    545547        Paste Parameter values to the panel if possible 
    546548        """ 
    547         flag = self.get_paste() 
    548549        if event != None: 
    549550            event.Skip() 
     551        # It seems MAC needs wxCallAfter for the setvalues  
     552        # for multiple textctrl items, otherwise it tends to crash once a while. 
     553        flag = wx.CallAfter(self.get_paste) 
     554         
    550555        # messages depending on the flag 
    551556        self._copy_info(flag) 
Note: See TracChangeset for help on using the changeset viewer.