From: Kevin A. <ka...@us...> - 2004-09-10 18:10:42
|
Update of /cvsroot/pythoncard/PythonCard/tools/resourceEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv624 Modified Files: resourceEditor.py Log Message: fixed component paste on Mac Index: resourceEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/resourceEditor/resourceEditor.py,v retrieving revision 1.211 retrieving revision 1.212 diff -C2 -d -r1.211 -r1.212 *** resourceEditor.py 10 Sep 2004 17:52:38 -0000 1.211 --- resourceEditor.py 10 Sep 2004 18:10:23 -0000 1.212 *************** *** 547,551 **** if self.startName in self.components: - print "dragging" if not self.movingComponent and self.resizingHandleTarget: self.resizingHandler[self.resizingHandleTarget](event) --- 547,550 ---- *************** *** 1509,1512 **** --- 1508,1516 ---- if not isinstance(desc, str): return + # KEA 2004-09-10 + # the clipboard is converting newlines to returns + # which causes eval to fail + if wx.Platform == '__WXMAC__': + desc = desc.replace(", \r ", ", \n ") # this is dangerous so we need a better way of converting # the text in the clipboard to a dictionary safely |