Adding test for avoiding Clipboard multiple opening
authorlaurent
Tue, 01 Sep 2009 14:21:31 +0200
changeset 402 281fd35e7a7b
parent 401 d3f086b0da30
child 403 2160fd6d83ed
Adding test for avoiding Clipboard multiple opening
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Tue Sep 01 10:30:48 2009 +0200
+++ b/PLCOpenEditor.py	Tue Sep 01 14:21:31 2009 +0200
@@ -818,7 +818,7 @@
 
     def GetCopyBuffer(self):
         data = None
-        if wx.TheClipboard.Open():
+        if wx.TheClipboard.IsOpened() or wx.TheClipboard.Open():
             dataobj = wx.TextDataObject()
             if wx.TheClipboard.GetData(dataobj):
                 data = dataobj.GetText()
@@ -826,7 +826,7 @@
         return data
         
     def SetCopyBuffer(self, text):
-        if wx.TheClipboard.Open():
+        if wx.TheClipboard.IsOpened() or wx.TheClipboard.Open():
             data = wx.TextDataObject()
             data.SetText(text)
             wx.TheClipboard.SetData(data)