Re: wx.Theclipboard
Dietmar Schwertberger <[email protected]> Mon, 8 Jan 2024 17:48:48 +0100
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
On 08.01.2024 13:39, Nathan smith wrote: > I want basically to be able to set the clipboard with both formats, > then in the paste function say if the plain text is present, set that > to a variable, if the bytes format is present, use that too. You need to use wx.DataObjectComposite. The code at the top of the documentation page should get you started: https://docs.wxpython.org/wx.DataObjectComposite.html?highlight=wx%20dataobjectcomposite#wx.DataObjectComposite Regards, Dietmar -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/b2efe9e3-a699-44dd-9a5f-008e02702587%40schwertberger.de.