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: [email protected]
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/[EMAIL PROTECTED]

Reply via email to