wxPython stuff:
1. Added test for HTML printing 2. Update wxFontEnumerator 3. wxPyEvent and wxPyCommandEvent derived classes now return the actual Python object in the event handler. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -320,6 +320,26 @@ public:
|
||||
wxFontEncoding encoding = wxFONTENCODING_SYSTEM, // all
|
||||
bool fixedWidthOnly = FALSE);
|
||||
bool EnumerateEncodings(const char* facename = "");
|
||||
|
||||
//wxArrayString* GetEncodings();
|
||||
//wxArrayString* GetFacenames();
|
||||
%addmethods {
|
||||
PyObject* GetEncodings() {
|
||||
wxArrayString* arr = self->GetEncodings();
|
||||
PyObject* list = PyList_New(0);
|
||||
for (size_t x=0; x<arr->GetCount(); x++)
|
||||
PyList_Append(list, PyString_FromString((*arr)[x]));
|
||||
return list;
|
||||
}
|
||||
|
||||
PyObject* GetFacenames() {
|
||||
wxArrayString* arr = self->GetFacenames();
|
||||
PyObject* list = PyList_New(0);
|
||||
for (size_t x=0; x<arr->GetCount(); x++)
|
||||
PyList_Append(list, PyString_FromString((*arr)[x]));
|
||||
return list;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user