X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbfc9df6768069f770bf8299fc0e6f528a92d4a8..21f0762a1a4609749f43234c61f40d6692eb815a:/wxPython/src/msw/_misc.py diff --git a/wxPython/src/msw/_misc.py b/wxPython/src/msw/_misc.py index b4494a0615..dade0032d4 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 @@ -4359,12 +4381,12 @@ class TimeSpan(object): def __str__(self): return self.Format().encode(wx.GetDefaultPyEncoding()) - Days = property(GetDays,doc="See `GetDays`") - Hours = property(GetHours,doc="See `GetHours`") - Milliseconds = property(GetMilliseconds,doc="See `GetMilliseconds`") - Minutes = property(GetMinutes,doc="See `GetMinutes`") - Seconds = property(GetSeconds,doc="See `GetSeconds`") - Weeks = property(GetWeeks,doc="See `GetWeeks`") + days = property(GetDays,doc="See `GetDays`") + hours = property(GetHours,doc="See `GetHours`") + milliseconds = property(GetMilliseconds,doc="See `GetMilliseconds`") + minutes = property(GetMinutes,doc="See `GetMinutes`") + seconds = property(GetSeconds,doc="See `GetSeconds`") + weeks = property(GetWeeks,doc="See `GetWeeks`") _misc_.TimeSpan_swigregister(TimeSpan) def TimeSpan_Milliseconds(*args, **kwargs): @@ -4556,11 +4578,11 @@ class DateSpan(object): """__ne__(self, DateSpan other) -> bool""" return _misc_.DateSpan___ne__(*args, **kwargs) - Days = property(GetDays,SetDays,doc="See `GetDays` and `SetDays`") - Months = property(GetMonths,SetMonths,doc="See `GetMonths` and `SetMonths`") - TotalDays = property(GetTotalDays,doc="See `GetTotalDays`") - Weeks = property(GetWeeks,SetWeeks,doc="See `GetWeeks` and `SetWeeks`") - Years = property(GetYears,SetYears,doc="See `GetYears` and `SetYears`") + days = property(GetDays,SetDays,doc="See `GetDays` and `SetDays`") + months = property(GetMonths,SetMonths,doc="See `GetMonths` and `SetMonths`") + totalDays = property(GetTotalDays,doc="See `GetTotalDays`") + weeks = property(GetWeeks,SetWeeks,doc="See `GetWeeks` and `SetWeeks`") + years = property(GetYears,SetYears,doc="See `GetYears` and `SetYears`") _misc_.DateSpan_swigregister(DateSpan) def DateSpan_Days(*args, **kwargs): @@ -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