dabo Commit 4306

View: New views
1 Messages — Rating Filter:   Alert me  

dabo Commit 4306

by Ed Leafe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

dabo Commit
Revision 4306
Date: 2008-07-22 11:12:46 -0700 (Tue, 22 Jul 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4306

Changed:
U   trunk/dabo/ui/uiwx/dHtmlBox.py

Log:
Added support for copying selected text.


Diff:
Modified: trunk/dabo/ui/uiwx/dHtmlBox.py
===================================================================
--- trunk/dabo/ui/uiwx/dHtmlBox.py 2008-07-21 19:08:03 UTC (rev 4305)
+++ trunk/dabo/ui/uiwx/dHtmlBox.py 2008-07-22 18:12:46 UTC (rev 4306)
@@ -65,6 +65,11 @@
  self.Page = evt.href
 
 
+ def copy(self):
+ """Implement the plain text version of copying"""
+ return self.SelectionToText()
+
+
  def setImageURLs(self, val):
  """Replace standard image file names with 'file:///img.pth' references"""
  pat = re.compile(r"""<img (.*)\bsrc=(['"]?)([^'">]+)(['"]?)([^>]*)>""")




_______________________________________________
Post Messages to: Dabo-dev@...
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/20080722181248.80D593182C8@...
LightInTheBox - Buy quality products at wholesale price