Author: johannes
Date: 2006-08-17 04:21:19 -0500 (Thu, 17 Aug 2006)
New Revision: 8563
Modified:
branches/forms-0.5/src/uidrivers/wx26/UIdriver.py
Log:
Added missing clipboard methods
Modified: branches/forms-0.5/src/uidrivers/wx26/UIdriver.py
===================================================================
--- branches/forms-0.5/src/uidrivers/wx26/UIdriver.py 2006-08-17 09:19:25 UTC
(rev 8562)
+++ branches/forms-0.5/src/uidrivers/wx26/UIdriver.py 2006-08-17 09:21:19 UTC
(rev 8563)
@@ -185,8 +185,30 @@
assert gLeave (6)
+ # ---------------------------------------------------------------------------
+ # Clipboard routines
+ # ---------------------------------------------------------------------------
+ def getClipboardContents(self, event):
+
+ event.__result__ = ""
+ if wx.TheClipboard.Open():
+ data = wx.TextDataObject()
+ if wx.TheClipboard.GetData(data):
+ event.__result__ = data.GetText()
+ wx.TheClipboard.Close()
+
# ---------------------------------------------------------------------------
+
+ def setClipboardContents(self, event):
+
+ if wx.TheClipboard.Open():
+ value = wx.TheClipboard.SetData(wx.TextDataObject(event.text))
+ assert gDebug(6,"Set Clipboard Status: %s" % value)
+ wx.TheClipboard.Close()
+
+
+ # ---------------------------------------------------------------------------
# create a modal message box
# ---------------------------------------------------------------------------
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue