mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Add tweaks for things like output args, ownership transfers, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -206,6 +206,21 @@ def fixBookctrlClass(klass, treeBook=False):
|
||||
virtual bool InsertPage(size_t index, wxWindow * page, const wxString & text,
|
||||
bool select = false, int imageId = NO_IMAGE);
|
||||
"""))
|
||||
|
||||
|
||||
def fixHtmlSetFonts(klass):
|
||||
# Use wxArrayInt instead of a C array of ints.
|
||||
m = klass.find('SetFonts')
|
||||
m.find('sizes').type = 'const wxArrayInt&'
|
||||
m.find('sizes').default = ''
|
||||
m.argsString = '(const wxString & normal_face, const wxString & fixed_face, const wxArrayInt& sizes)'
|
||||
m.setCppCode("""\
|
||||
if (sizes->GetCount() != 7) {
|
||||
wxPyErr_SetString(PyExc_ValueError, "Sequence of 7 integers expected.");
|
||||
return;
|
||||
}
|
||||
self->SetFonts(*normal_face, *fixed_face, &sizes->Item(0));
|
||||
""")
|
||||
|
||||
|
||||
def removeVirtuals(klass):
|
||||
|
||||
Reference in New Issue
Block a user