%pythoncode { wx = _core }
%pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
-%include _wizard_rename.i
-
MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
//----------------------------------------------------------------------
// False otherwise and for EVT_WIZARD_PAGE_CHANGED return True if we came
// from the previous page and False if we returned from the next one
// (this function doesn't make sense for CANCEL events)
- bool GetDirection() const { return m_direction; }
+ bool GetDirection() const;
+
+ wxWizardPage* GetPage() const;
- wxWizardPage* GetPage() const { return m_page; }
+ %property(Direction, GetDirection, doc="See `GetDirection`");
+ %property(Page, GetPage, doc="See `GetPage`");
};
const wxBitmap& bitmap = wxNullBitmap,
const wxString& resource = wxPyEmptyString) {
wxChar* res = NULL;
- if (resource.Length())
+ if (resource.length())
res = (wxChar*)resource.c_str();
return self->Create(parent, bitmap, res);
}
// dynamically or to do something even more fancy. It's ok to return
// wxNullBitmap from here - the default one will be used then.
virtual wxBitmap GetBitmap() const;
+
+ %property(Bitmap, GetBitmap, doc="See `GetBitmap`");
+ %property(Next, GetNext, doc="See `GetNext`");
+ %property(Prev, GetPrev, doc="See `GetPrev`");
};
class wxPyWizardPage : public wxWizardPage {
public:
- %pythonAppend wxPyWizardPage "self._setCallbackInfo(self, PyWizardPage);self._setOORInfo(self)"
+ %pythonAppend wxPyWizardPage "self._setOORInfo(self);" setCallbackInfo(PyWizardPage)
%pythonAppend wxPyWizardPage() ""
%typemap(out) wxPyWizardPage*; // turn off this typemap
const wxBitmap* bitmap = &wxNullBitmap,
const wxString* resource = &wxPyEmptyString) {
wxChar* res = NULL;
- if (resource->Length())
+ if (resource->length())
res = (wxChar*)resource->c_str();
return new wxPyWizardPage(parent, *bitmap, res);
}
const wxBitmap& bitmap = wxNullBitmap,
const wxString& resource = wxPyEmptyString) {
wxChar* res = NULL;
- if (resource.Length())
+ if (resource.length())
res = (wxChar*)resource.c_str();
return self->Create(parent, bitmap, res);
}
virtual void SetBorder(int border);
// is the wizard running?
- bool IsRunning() const { return m_page != NULL; }
+ bool IsRunning() const;
// show the prev/next page, but call TransferDataFromWindow on the current
// page first and return False without changing the page if
bool HasNextPage(wxWizardPage* page);
bool HasPrevPage(wxWizardPage* page);
+
+ %property(CurrentPage, GetCurrentPage, doc="See `GetCurrentPage`");
+ %property(PageAreaSizer, GetPageAreaSizer, doc="See `GetPageAreaSizer`");
+ %property(PageSize, GetPageSize, SetPageSize, doc="See `GetPageSize` and `SetPageSize`");
};