From: Robin Dunn Date: Mon, 16 Apr 2007 19:16:57 +0000 (+0000) Subject: User lower case property names in wx.DateSpan and wx.TimeSpan in order X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9b89d98dacca75bf091ff4bbbe51fc2d9c506b78 User lower case property names in wx.DateSpan and wx.TimeSpan in order to not conflict with static methods with same names. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_datetime.i b/wxPython/src/_datetime.i index 4eb0162dd1..4a278dcd96 100644 --- a/wxPython/src/_datetime.i +++ b/wxPython/src/_datetime.i @@ -1058,12 +1058,12 @@ public: 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`"); + %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`"); }; @@ -1190,11 +1190,11 @@ public: bool __ne__(const wxDateSpan* other) { return other ? (*self != *other) : true; } } - %property(Days, GetDays, SetDays, doc="See `GetDays` and `SetDays`"); - %property(Months, GetMonths, SetMonths, doc="See `GetMonths` and `SetMonths`"); - %property(TotalDays, GetTotalDays, doc="See `GetTotalDays`"); - %property(Weeks, GetWeeks, SetWeeks, doc="See `GetWeeks` and `SetWeeks`"); - %property(Years, GetYears, SetYears, doc="See `GetYears` and `SetYears`"); + %property(days, GetDays, SetDays, doc="See `GetDays` and `SetDays`"); + %property(months, GetMonths, SetMonths, doc="See `GetMonths` and `SetMonths`"); + %property(totalDays, GetTotalDays, doc="See `GetTotalDays`"); + %property(weeks, GetWeeks, SetWeeks, doc="See `GetWeeks` and `SetWeeks`"); + %property(years, GetYears, SetYears, doc="See `GetYears` and `SetYears`"); };