X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbfc9df6768069f770bf8299fc0e6f528a92d4a8..e6c222e712c05d7cfb6a5337a68ec07522eacac8:/wxPython/src/msw/_misc.py diff --git a/wxPython/src/msw/_misc.py b/wxPython/src/msw/_misc.py index b4494a0615..1ef4e7078e 100644 --- a/wxPython/src/msw/_misc.py +++ b/wxPython/src/msw/_misc.py @@ -1986,6 +1986,8 @@ EXEC_SYNC = _misc_.EXEC_SYNC EXEC_NOHIDE = _misc_.EXEC_NOHIDE EXEC_MAKE_GROUP_LEADER = _misc_.EXEC_MAKE_GROUP_LEADER EXEC_NODISABLE = _misc_.EXEC_NODISABLE +EXEC_NOEVENTS = _misc_.EXEC_NOEVENTS +EXEC_BLOCK = _misc_.EXEC_BLOCK def Execute(*args, **kwargs): """Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long""" @@ -2712,6 +2714,16 @@ class ArtProvider(object): return _misc_.ArtProvider_GetIcon(*args, **kwargs) GetIcon = staticmethod(GetIcon) + def GetIconBundle(*args, **kwargs): + """ + GetIconBundle(wxArtID id, wxArtClient client=wxART_OTHER) -> wxIconBundle + + Query the providers for iconbundle with given ID and return it. Return + wx.NullIconBundle if no provider provides it. + """ + return _misc_.ArtProvider_GetIconBundle(*args, **kwargs) + + GetIconBundle = staticmethod(GetIconBundle) def GetSizeHint(*args, **kwargs): """ GetSizeHint(String client, bool platform_dependent=False) -> Size @@ -2735,6 +2747,7 @@ ART_CMN_DIALOG = cvar.ART_CMN_DIALOG ART_HELP_BROWSER = cvar.ART_HELP_BROWSER ART_MESSAGE_BOX = cvar.ART_MESSAGE_BOX ART_BUTTON = cvar.ART_BUTTON +ART_LIST = cvar.ART_LIST ART_OTHER = cvar.ART_OTHER ART_ADD_BOOKMARK = cvar.ART_ADD_BOOKMARK ART_DEL_BOOKMARK = cvar.ART_DEL_BOOKMARK @@ -2838,6 +2851,15 @@ def ArtProvider_GetIcon(*args, **kwargs): """ return _misc_.ArtProvider_GetIcon(*args, **kwargs) +def ArtProvider_GetIconBundle(*args, **kwargs): + """ + ArtProvider_GetIconBundle(wxArtID id, wxArtClient client=wxART_OTHER) -> wxIconBundle + + Query the providers for iconbundle with given ID and return it. Return + wx.NullIconBundle if no provider provides it. + """ + return _misc_.ArtProvider_GetIconBundle(*args, **kwargs) + def ArtProvider_GetSizeHint(*args, **kwargs): """ ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size @@ -5669,12 +5691,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