- DocDeclAStr(
- static void, GetAmPmStrings(wxString *OUTPUT, wxString *OUTPUT),
- "GetAmPmStrings() -> (am, pm)",
- "Get the AM and PM strings in the current locale (may be empty)");
-
+ %extend {
+ DocAStr(
+ GetAmPmStrings,
+ "GetAmPmStrings() -> (am, pm)",
+ "Get the AM and PM strings in the current locale (may be empty)", "");
+ static PyObject* GetAmPmStrings() {
+ wxString am;
+ wxString pm;
+ wxDateTime::GetAmPmStrings(&am, &pm);
+ wxPyBlock_t blocked = wxPyBeginBlockThreads();
+ PyObject* tup = PyTuple_New(2);
+ PyTuple_SET_ITEM(tup, 0, wx2PyString(am));
+ PyTuple_SET_ITEM(tup, 1, wx2PyString(pm));
+ wxPyEndBlockThreads(blocked);
+ return tup;
+ }
+ }
+