Fixed SetFonts methods to properly accept a Python list for the sizes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2000-04-20 07:34:04 +00:00
parent d72d009d64
commit 9b4c5d5a21
4 changed files with 53 additions and 119 deletions

View File

@@ -152,7 +152,16 @@ public:
int GetCharHeight();
int GetCharWidth();
wxWindow* GetWindow();
void SetFonts(wxString normal_face, wxString fixed_face, int *LIST);
//void SetFonts(wxString normal_face, wxString fixed_face, int *LIST);
%addmethods {
void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes) {
int* temp = int_LIST_helper(sizes);
if (temp) {
self->SetFonts(normal_face, fixed_face, temp);
delete [] temp;
}
}
}
wxHtmlContainerCell* GetContainer();
wxHtmlContainerCell* OpenContainer();
@@ -457,7 +466,18 @@ public:
void SetRelatedFrame(wxFrame* frame, const char* format);
wxFrame* GetRelatedFrame();
void SetRelatedStatusBar(int bar);
void SetFonts(wxString normal_face, wxString fixed_face, int *LIST);
//void SetFonts(wxString normal_face, wxString fixed_face, int *LIST);
%addmethods {
void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes) {
int* temp = int_LIST_helper(sizes);
if (temp) {
self->SetFonts(normal_face, fixed_face, temp);
delete [] temp;
}
}
}
void SetTitle(const char* title);
void SetBorders(int b);
void ReadCustomization(wxConfigBase *cfg, char* path = "");