%pythonAppend wxFrame "self._setOORInfo(self)"
%pythonAppend wxFrame() ""
- wxFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
+ wxFrame(wxWindow* parent, const wxWindowID id=-1,
+ const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxPyFrameNameStr);
%name(PreFrame)wxFrame();
- bool Create(wxWindow* parent, const wxWindowID id, const wxString& title,
+ bool Create(wxWindow* parent, const wxWindowID id=-1,
+ const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
// sends a size event to the window using its current size -- this has an
// effect of refreshing the window layout
//
- virtual void SendSizeEvent() { }
+ virtual void SendSizeEvent();
// menu bar functions
%pythonAppend wxDialog() ""
wxDialog(wxWindow* parent,
- const wxWindowID id,
- const wxString& title,
+ const wxWindowID id=-1,
+ const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE,
%name(PreDialog)wxDialog();
bool Create(wxWindow* parent,
- const wxWindowID id,
- const wxString& title,
+ const wxWindowID id=-1,
+ const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE,
// the modal dialogs have a return code - usually the id of the last
// pressed button
- void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
- int GetReturnCode() const { return m_returnCode; }
+ void SetReturnCode(int returnCode);
+ int GetReturnCode() const;
// splits text up at newlines and places the
// lines into a vertical wxBoxSizer
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
+ %pythoncode {
+ def SendSizeEvent(self):
+ self.ProcessEvent(wx.SizeEvent((-1,-1)))
+ }
};
//---------------------------------------------------------------------------
%pythonAppend wxMiniFrame "self._setOORInfo(self)"
%pythonAppend wxMiniFrame() ""
- wxMiniFrame(wxWindow* parent, const wxWindowID id, const wxString& title,
+ wxMiniFrame(wxWindow* parent, const wxWindowID id=-1,
+ const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxPyFrameNameStr);
%name(PreMiniFrame)wxMiniFrame();
- bool Create(wxWindow* parent, const wxWindowID id, const wxString& title,
+ bool Create(wxWindow* parent, const wxWindowID id=-1,
+ const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
%pythonAppend wxSplashScreen "self._setOORInfo(self)"
wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds,
- wxWindow* parent, wxWindowID id,
+ wxWindow* parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP);