X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0eae5d09992c634488c5be14d5a378d6e1dedb71..b93f7ba6340814fbd63df4004812e05ba75ef9ff:/wxPython/src/_datetime.i diff --git a/wxPython/src/_datetime.i b/wxPython/src/_datetime.i index 78b03d2e45..a14241a6c6 100644 --- a/wxPython/src/_datetime.i +++ b/wxPython/src/_datetime.i @@ -617,8 +617,10 @@ public: // is the date valid (True even for non initialized objects)? inline bool IsValid() const; - %pythoncode { Ok = IsValid } - %pythoncode { def __nonzero__(self): return self.Ok() }; + %pythoncode { IsOk = IsValid } + %pythoncode { Ok = IsOk } + + %pythoncode { def __nonzero__(self): return self.IsOk() }; // get the number of seconds since the Unix epoch - returns (time_t)-1 @@ -1063,6 +1065,13 @@ public: def __str__(self): return self.Format().encode(wx.GetDefaultPyEncoding()) } + + %property(Days, GetDays, doc="See `GetDays`"); + %property(Hours, GetHours, doc="See `GetHours`"); + %property(Milliseconds, GetMilliseconds, doc="See `GetMilliseconds`"); + %property(Minutes, GetMinutes, doc="See `GetMinutes`"); + %property(Seconds, GetSeconds, doc="See `GetSeconds`"); + %property(Weeks, GetWeeks, doc="See `GetWeeks`"); };