Changeset 2a66329 in sasview for fittingview
- Timestamp:
- Jul 16, 2012 10:20:40 AM (12 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/basepage.py
rbe1ec9f r2a66329 733 733 Paste Parameter values to the panel if possible 734 734 """ 735 if event != None:736 event.Skip()735 #if event != None: 736 # event.Skip() 737 737 # It seems MAC needs wxCallAfter for the setvalues 738 738 # for multiple textctrl items, otherwise it tends to crash once a while … … 758 758 msg += ": No valid parameter values to paste from the clipboard..." 759 759 infor = "error" 760 wx.PostEvent(self.parent.parent, 761 StatusEvent(status=msg, info=infor)) 762 raise 760 763 # inform msg to wx 761 764 wx.PostEvent(self.parent.parent, … … 3062 3065 data = wx.TextDataObject() 3063 3066 # get wx dataobject 3064 #success = wx.TheClipboard.GetData(data)3067 success = wx.TheClipboard.GetData(data) 3065 3068 # get text 3066 text = data.GetText() 3069 if success: 3070 text = data.GetText() 3071 else: 3072 text = '' 3067 3073 # close clipboard 3068 3074 wx.TheClipboard.Close()
Note: See TracChangeset
for help on using the changeset viewer.