* Some WXWIN_COMPATIBILITY_2_4 changes, as well as flagging other
things that will need fixing when WXWIN_COMPATIBILITY_2_4 is turned off. * Create a custom version of the "default" ctor for wxCursor on wxGTK * Switch to new format string and name string constants for default values * Changes some public data members of event classes into properties as they are no longer public in the C++. * Added wxSL_INVERSE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,10 +18,10 @@
|
||||
|
||||
%{
|
||||
#include <wx/datetime.h>
|
||||
|
||||
%}
|
||||
MAKE_CONST_WXSTRING2(DateFormatStr, wxT("%c"));
|
||||
MAKE_CONST_WXSTRING2(TimeSpanFormatStr, wxT("%H:%M:%S"));
|
||||
|
||||
MAKE_CONST_WXSTRING(DefaultDateTimeFormat);
|
||||
MAKE_CONST_WXSTRING(DefaultTimeSpanFormat);
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
@@ -783,7 +783,7 @@ public:
|
||||
// default, they will not change if they had valid values or will
|
||||
// default to Today() otherwise)
|
||||
int ParseFormat(const wxString& date,
|
||||
const wxString& format = wxPyDateFormatStr,
|
||||
const wxString& format = wxPyDefaultDateTimeFormat,
|
||||
const wxDateTime& dateDef = wxDefaultDateTime) {
|
||||
const wxChar* rv;
|
||||
const wxChar* _date = date;
|
||||
@@ -828,7 +828,7 @@ public:
|
||||
// argument corresponds to the preferred date and time representation
|
||||
// for the current locale) and returns the string containing the
|
||||
// resulting text representation
|
||||
wxString Format(const wxString& format = wxPyDateFormatStr,
|
||||
wxString Format(const wxString& format = wxPyDefaultDateTimeFormat,
|
||||
const wxDateTime::TimeZone& tz = LOCAL_TZ) const;
|
||||
|
||||
// preferred date representation for the current locale
|
||||
@@ -995,7 +995,7 @@ public:
|
||||
// resulting text representation. Notice that only some of format
|
||||
// specifiers valid for wxDateTime are valid for wxTimeSpan: hours,
|
||||
// minutes and seconds make sense, but not "PM/AM" string for example.
|
||||
wxString Format(const wxString& format = wxPyTimeSpanFormatStr) const;
|
||||
wxString Format(const wxString& format = wxPyDefaultTimeSpanFormat) const;
|
||||
|
||||
%pythoncode {
|
||||
def __repr__(self):
|
||||
|
Reference in New Issue
Block a user