Changeset 6694604 in sasview for sansview/perspectives


Ignore:
Timestamp:
Jun 29, 2011 6:16:54 PM (14 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:
944b1a6
Parents:
0145a25
Message:

minor fixes including paste info

File:
1 edited

Legend:

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

    r2d603a2 r6694604  
    538538            event.Skip() 
    539539        # It seems MAC needs wxCallAfter 
    540         flag = wx.CallAfter(self.get_copy) 
     540        wx.CallAfter(self.get_copy) 
    541541         
    542542        # messages depending on the flag 
    543         self._copy_info(flag) 
     543        self._copy_info(None) 
    544544         
    545545    def on_paste(self, event): 
     
    551551        # It seems MAC needs wxCallAfter for the setvalues  
    552552        # for multiple textctrl items, otherwise it tends to crash once a while. 
    553         flag = wx.CallAfter(self.get_paste) 
    554          
     553        wx.CallAfter(self.get_paste) 
    555554        # messages depending on the flag 
    556         self._copy_info(flag) 
     555        self._copy_info(True) 
    557556         
    558557    def _copy_info(self, flag): 
     
    26972696            text = data.GetText() 
    26982697            wx.TheClipboard.Close() 
    2699              
     2698     
    27002699        return None 
    27012700     
     
    27732772            self._get_paste_helper(self.str_parameters,  
    27742773                                   self.orientation_params, context) 
    2775              
     2774    
    27762775        return True 
    27772776     
Note: See TracChangeset for help on using the changeset viewer.