commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8563 - branches/forms-0.5/src/uidrivers/wx26


From: johannes
Subject: [gnue] r8563 - branches/forms-0.5/src/uidrivers/wx26
Date: Thu, 17 Aug 2006 04:21:19 -0500 (CDT)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]