X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59ccbf7fec7543fb2629f195592cb8aa67aa143b..b3f62dd5210576c97fcb5f3a74c210e7d5201494:/wxPython/src/msw/_misc.py diff --git a/wxPython/src/msw/_misc.py b/wxPython/src/msw/_misc.py index 580e0229ee..dade0032d4 100644 --- a/wxPython/src/msw/_misc.py +++ b/wxPython/src/msw/_misc.py @@ -316,11 +316,6 @@ def EndBusyCursor(*args): """EndBusyCursor()""" return _misc_.EndBusyCursor(*args) -def GetElapsedTime(*args, **kwargs): - """GetElapsedTime(bool resetTimer=True) -> long""" - return _misc_.GetElapsedTime(*args, **kwargs) -GetElapsedTime = wx._deprecated(GetElapsedTime) - def IsBusy(*args): """IsBusy() -> bool""" return _misc_.IsBusy(*args) @@ -333,10 +328,6 @@ def Shell(*args, **kwargs): """Shell(String command=EmptyString) -> bool""" return _misc_.Shell(*args, **kwargs) -def StartTimer(*args): - """StartTimer()""" - return _misc_.StartTimer(*args) - def GetOsVersion(*args): """GetOsVersion() -> (platform, major, minor)""" return _misc_.GetOsVersion(*args) @@ -1995,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""" @@ -2721,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 @@ -2744,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 @@ -2847,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 @@ -3307,8 +3320,26 @@ class FileConfig(ConfigBase): _misc_.FileConfig_swiginit(self,_misc_.new_FileConfig(*args, **kwargs)) __swig_destroy__ = _misc_.delete_FileConfig __del__ = lambda self : None; + def GetGlobalFileName(*args, **kwargs): + """GetGlobalFileName(String szFile) -> String""" + return _misc_.FileConfig_GetGlobalFileName(*args, **kwargs) + + GetGlobalFileName = staticmethod(GetGlobalFileName) + def GetLocalFileName(*args, **kwargs): + """GetLocalFileName(String szFile, int style=0) -> String""" + return _misc_.FileConfig_GetLocalFileName(*args, **kwargs) + + GetLocalFileName = staticmethod(GetLocalFileName) _misc_.FileConfig_swigregister(FileConfig) +def FileConfig_GetGlobalFileName(*args, **kwargs): + """FileConfig_GetGlobalFileName(String szFile) -> String""" + return _misc_.FileConfig_GetGlobalFileName(*args, **kwargs) + +def FileConfig_GetLocalFileName(*args, **kwargs): + """FileConfig_GetLocalFileName(String szFile, int style=0) -> String""" + return _misc_.FileConfig_GetLocalFileName(*args, **kwargs) + class ConfigPathChanger(object): """ A handy little class which changes current path to the path of given @@ -3639,6 +3670,10 @@ class DateTime(object): """ResetTime(self) -> DateTime""" return _misc_.DateTime_ResetTime(*args, **kwargs) + def GetDateOnly(*args, **kwargs): + """GetDateOnly(self) -> DateTime""" + return _misc_.DateTime_GetDateOnly(*args, **kwargs) + def SetYear(*args, **kwargs): """SetYear(self, int year) -> DateTime""" return _misc_.DateTime_SetYear(*args, **kwargs) @@ -3703,17 +3738,6 @@ class DateTime(object): """GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime""" return _misc_.DateTime_GetLastWeekDay(*args, **kwargs) - def SetToTheWeek(*args, **kwargs): - """SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool""" - return _misc_.DateTime_SetToTheWeek(*args, **kwargs) - - def GetWeek(*args, **kwargs): - """GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime""" - return _misc_.DateTime_GetWeek(*args, **kwargs) - - SetToTheWeek = wx._deprecated(SetToTheWeek, "SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead") - GetWeek = wx._deprecated(GetWeek, "GetWeek is deprecated, use GetWeekOfYear instead") - def SetToWeekOfYear(*args, **kwargs): """SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime""" return _misc_.DateTime_SetToWeekOfYear(*args, **kwargs) @@ -4032,7 +4056,6 @@ class DateTime(object): RataDie = property(GetRataDie,doc="See `GetRataDie`") Second = property(GetSecond,SetSecond,doc="See `GetSecond` and `SetSecond`") Ticks = property(GetTicks,doc="See `GetTicks`") - Week = property(GetWeek,doc="See `GetWeek`") WeekDay = property(GetWeekDay,doc="See `GetWeekDay`") WeekDayInSameWeek = property(GetWeekDayInSameWeek,doc="See `GetWeekDayInSameWeek`") WeekOfMonth = property(GetWeekOfMonth,doc="See `GetWeekOfMonth`") @@ -4358,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): @@ -4555,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): @@ -4684,14 +4707,15 @@ class DataFormat(object): """ return _misc_.DataFormat_GetType(*args, **kwargs) - def GetId(*args, **kwargs): - """ - GetId(self) -> String + def _GetId(*args, **kwargs): + """_GetId(self) -> String""" + return _misc_.DataFormat__GetId(*args, **kwargs) - Returns the name of a custom format (this function will fail for a - standard format). - """ - return _misc_.DataFormat_GetId(*args, **kwargs) + def GetId(self): + """Returns the name of a custom format (this function will fail for a + format).""" + nolog = wx.LogNull() + return self._GetId() def SetId(*args, **kwargs): """ @@ -5667,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 @@ -5682,7 +5717,6 @@ class Clipboard(_core.Object): return _misc_.Clipboard_Get(*args, **kwargs) Get = staticmethod(Get) - Data = property(GetData,SetData,doc="See `GetData` and `SetData`") _misc_.Clipboard_swigregister(Clipboard) def Clipboard_Get(*args):