Changeset 2a66329 in sasview for fittingview/src/sans/perspectives


Ignore:
Timestamp:
Jul 16, 2012 10:20:40 AM (12 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:
80ff71e
Parents:
f518eef
Message:

fixed the paste problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/basepage.py

    rbe1ec9f r2a66329  
    733733        Paste Parameter values to the panel if possible 
    734734        """ 
    735         if event != None: 
    736             event.Skip() 
     735        #if event != None: 
     736        #    event.Skip() 
    737737        # It seems MAC needs wxCallAfter for the setvalues 
    738738        # for multiple textctrl items, otherwise it tends to crash once a while 
     
    758758            msg += ": No valid parameter values to paste from the clipboard..." 
    759759            infor = "error" 
     760            wx.PostEvent(self.parent.parent, 
     761                    StatusEvent(status=msg, info=infor)) 
     762            raise 
    760763        # inform msg to wx 
    761764        wx.PostEvent(self.parent.parent, 
     
    30623065                data = wx.TextDataObject() 
    30633066                # get wx dataobject 
    3064                 #success = wx.TheClipboard.GetData(data) 
     3067                success = wx.TheClipboard.GetData(data) 
    30653068                # get text 
    3066                 text = data.GetText() 
     3069                if success: 
     3070                    text = data.GetText() 
     3071                else: 
     3072                    text = '' 
    30673073            # close clipboard 
    30683074            wx.TheClipboard.Close() 
Note: See TracChangeset for help on using the changeset viewer.