X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbfc9df6768069f770bf8299fc0e6f528a92d4a8..cc8ce392c535b7a614337e3bdba04b670e2e34d0:/wxPython/src/msw/_misc.py?ds=sidebyside diff --git a/wxPython/src/msw/_misc.py b/wxPython/src/msw/_misc.py index b4494a0615..f45e23f3c4 100644 --- a/wxPython/src/msw/_misc.py +++ b/wxPython/src/msw/_misc.py @@ -5669,12 +5669,23 @@ class Clipboard(_core.Object): """ UsePrimarySelection(self, bool primary=True) - On platforms supporting it (the X11 based platforms), selects the - so called PRIMARY SELECTION as the clipboard as opposed to the - normal clipboard, if primary is True. + On platforms supporting it (the X11 based platforms), selects the so + called PRIMARY SELECTION as the clipboard as opposed to the normal + clipboard, if primary is True. On other platforms all clipboard + operations fail when using the primary selection. This allows code + supporting the primary selection to be written without ill effects on + the other platforms. """ return _misc_.Clipboard_UsePrimarySelection(*args, **kwargs) + def IsUsingPrimarySelection(*args, **kwargs): + """ + IsUsingPrimarySelection(self) -> bool + + Return true if we're using primary selection + """ + return _misc_.Clipboard_IsUsingPrimarySelection(*args, **kwargs) + def Get(*args, **kwargs): """ Get() -> Clipboard