[wxPython-users] Re: Clipboard refuses
Robin Dunn
robin at alldunn.com
Fri Feb 1 08:35:27 PST 2008
Egbert Bouwman wrote:
> On Fri, 2008-02-01 at 10:36 +0100, Egbert Bouwman wrote:
>> Hello,
>> In the following experiment I write something to the clipboard, and I
>> can retrieve it from there in an other application (Evolution),
>> but only as long as this experiment is still running, despite the
>> Flush(). What am I doing wrong ?
Not sure, the Flush appears to be working for me. Please let us know
your platform and version.
> def klipper(self, event):
> latin1 =wx.TextDataObject("sm\xf8rebr\xf8d")
BTW, if you're using a Unicode build of wxPython then you should do this
in case the system locale is not using the latin-1 encoding:
latin1 =wx.TextDataObject("sm\xf8rebr\xf8d".decode("latin-1"))
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list