--- 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)