Added more default args as needed to allow most window types to be

constructed with only the parent window arg.  In some cases other args
may be required for normal operation, but they can usually be set
after construction.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-06-02 20:53:05 +00:00
parent 6fd864d159
commit d55734102e
23 changed files with 104 additions and 84 deletions

View File

@ -146,13 +146,13 @@ public:
%pythonAppend wxDynamicSashWindow "self._setOORInfo(self)" %pythonAppend wxDynamicSashWindow "self._setOORInfo(self)"
%pythonAppend wxDynamicSashWindow() "" %pythonAppend wxDynamicSashWindow() ""
wxDynamicSashWindow(wxWindow *parent, wxWindowID id, wxDynamicSashWindow(wxWindow *parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
long style = wxCLIP_CHILDREN | wxDS_MANAGE_SCROLLBARS | wxDS_DRAG_CORNER, long style = wxCLIP_CHILDREN | wxDS_MANAGE_SCROLLBARS | wxDS_DRAG_CORNER,
const wxString& name = wxPyDynamicSashNameStr); const wxString& name = wxPyDynamicSashNameStr);
%name(PreDynamicSashWindow)wxDynamicSashWindow(); %name(PreDynamicSashWindow)wxDynamicSashWindow();
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
long style = wxCLIP_CHILDREN | wxDS_MANAGE_SCROLLBARS | wxDS_DRAG_CORNER, long style = wxCLIP_CHILDREN | wxDS_MANAGE_SCROLLBARS | wxDS_DRAG_CORNER,
const wxString& name = wxPyDynamicSashNameStr); const wxString& name = wxPyDynamicSashNameStr);
@ -186,8 +186,8 @@ public:
%pythonAppend wxEditableListBox "self._setOORInfo(self)" %pythonAppend wxEditableListBox "self._setOORInfo(self)"
%pythonAppend wxEditableListBox() "" %pythonAppend wxEditableListBox() ""
wxEditableListBox(wxWindow *parent, wxWindowID id, wxEditableListBox(wxWindow *parent, wxWindowID id=-1,
const wxString& label, const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxEL_ALLOW_NEW | wxEL_ALLOW_EDIT | wxEL_ALLOW_DELETE, long style = wxEL_ALLOW_NEW | wxEL_ALLOW_EDIT | wxEL_ALLOW_DELETE,

View File

@ -100,6 +100,11 @@ many toplevel functions and static methods will now check that a
wx.App object has already been created and will raise a wx.App object has already been created and will raise a
wx.PyNoAppError exception if not. wx.PyNoAppError exception if not.
Added more default args as needed to allow most window types to be
constructed with only the parent window arg. In some cases other args
may be required for normal operation, but they can usually be set
after construction.

View File

@ -68,7 +68,8 @@ public:
DocCtorStr( DocCtorStr(
wxButton(wxWindow* parent, wxWindowID id, const wxString& label, wxButton(wxWindow* parent, wxWindowID id=-1,
const wxString& label=wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
@ -82,7 +83,8 @@ public:
PreButton); PreButton);
DocDeclStr( DocDeclStr(
bool , Create(wxWindow* parent, wxWindowID id, const wxString& label, bool , Create(wxWindow* parent, wxWindowID id=-1,
const wxString& label=wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
@ -154,7 +156,8 @@ public:
%pythonAppend wxBitmapButton() "" %pythonAppend wxBitmapButton() ""
DocCtorStr( DocCtorStr(
wxBitmapButton(wxWindow* parent, wxWindowID id, const wxBitmap& bitmap, wxBitmapButton(wxWindow* parent, wxWindowID id=-1,
const wxBitmap& bitmap = wxNullBitmap,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxBU_AUTODRAW, long style = wxBU_AUTODRAW,
@ -168,11 +171,12 @@ public:
PreBitmapButton); PreBitmapButton);
DocDeclStr( DocDeclStr(
bool , Create(wxWindow* parent, wxWindowID id, const wxBitmap& bitmap, bool , Create(wxWindow* parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxBitmap& bitmap = wxNullBitmap,
const wxSize& size = wxDefaultSize, const wxPoint& pos = wxDefaultPosition,
long style = wxBU_AUTODRAW, const wxSize& size = wxDefaultSize,
const wxValidator& validator = wxDefaultValidator, long style = wxBU_AUTODRAW,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxPyButtonNameStr), const wxString& name = wxPyButtonNameStr),
"Acutally create the GUI BitmapButton for 2-phase creation.", ""); "Acutally create the GUI BitmapButton for 2-phase creation.", "");

View File

@ -87,7 +87,8 @@ public:
%pythonAppend wxCheckBox() "" %pythonAppend wxCheckBox() ""
DocCtorStr( DocCtorStr(
wxCheckBox(wxWindow* parent, wxWindowID id, const wxString& label, wxCheckBox(wxWindow* parent, wxWindowID id=-1,
const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
@ -102,7 +103,8 @@ public:
DocDeclStr( DocDeclStr(
bool, Create(wxWindow* parent, wxWindowID id, const wxString& label, bool, Create(wxWindow* parent, wxWindowID id=-1,
const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,

View File

@ -351,7 +351,7 @@ public:
wxMultiChoiceDialog(wxWindow *parent, wxMultiChoiceDialog(wxWindow *parent,
const wxString& message, const wxString& message,
const wxString& caption, const wxString& caption,
int choices=0, wxString* choices_array, int choices=0, wxString* choices_array=NULL,
long style = wxCHOICEDLG_STYLE, long style = wxCHOICEDLG_STYLE,
const wxPoint& pos = wxDefaultPosition), const wxPoint& pos = wxDefaultPosition),
"__init__(Window parent, String message, String caption, "__init__(Window parent, String message, String caption,

View File

@ -37,7 +37,7 @@ public:
DocCtorStr( DocCtorStr(
wxControl(wxWindow *parent, wxControl(wxWindow *parent,
wxWindowID id, wxWindowID id=-1,
const wxPoint& pos=wxDefaultPosition, const wxPoint& pos=wxDefaultPosition,
const wxSize& size=wxDefaultSize, const wxSize& size=wxDefaultSize,
long style=0, long style=0,
@ -53,7 +53,7 @@ __init__ as a plain old wx.Control is not very useful.", "");
DocDeclStr( DocDeclStr(
bool , Create(wxWindow *parent, bool , Create(wxWindow *parent,
wxWindowID id, wxWindowID id=-1,
const wxPoint& pos=wxDefaultPosition, const wxPoint& pos=wxDefaultPosition,
const wxSize& size=wxDefaultSize, const wxSize& size=wxDefaultSize,
long style=0, long style=0,

View File

@ -36,7 +36,7 @@ public:
%pythonAppend wxGauge "self._setOORInfo(self)" %pythonAppend wxGauge "self._setOORInfo(self)"
%pythonAppend wxGauge() "" %pythonAppend wxGauge() ""
wxGauge(wxWindow* parent, wxWindowID id, int range, wxGauge(wxWindow* parent, wxWindowID id=-1, int range=100,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxGA_HORIZONTAL, long style = wxGA_HORIZONTAL,
@ -44,7 +44,7 @@ public:
const wxString& name = wxPyGaugeNameStr); const wxString& name = wxPyGaugeNameStr);
%name(PreGauge)wxGauge(); %name(PreGauge)wxGauge();
bool Create(wxWindow* parent, wxWindowID id, int range, bool Create(wxWindow* parent, wxWindowID id=-1, int range=100,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxGA_HORIZONTAL, long style = wxGA_HORIZONTAL,

View File

@ -34,7 +34,7 @@ public:
%pythonAppend wxListBox "self._setOORInfo(self)" %pythonAppend wxListBox "self._setOORInfo(self)"
%pythonAppend wxListBox() "" %pythonAppend wxListBox() ""
wxListBox(wxWindow* parent, wxWindowID id, wxListBox(wxWindow* parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
//int choices=0, wxString* choices_array = NULL, //int choices=0, wxString* choices_array = NULL,
@ -44,7 +44,7 @@ public:
const wxString& name = wxPyListBoxNameStr); const wxString& name = wxPyListBoxNameStr);
%name(PreListBox)wxListBox(); %name(PreListBox)wxListBox();
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
//int choices=0, wxString* choices_array = NULL, //int choices=0, wxString* choices_array = NULL,
@ -148,7 +148,7 @@ public:
%pythonAppend wxCheckListBox "self._setOORInfo(self)" %pythonAppend wxCheckListBox "self._setOORInfo(self)"
%pythonAppend wxCheckListBox() "" %pythonAppend wxCheckListBox() ""
wxCheckListBox(wxWindow *parent, wxWindowID id, wxCheckListBox(wxWindow *parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
//int choices = 0, wxString* choices_array = NULL, //int choices = 0, wxString* choices_array = NULL,
@ -158,7 +158,7 @@ public:
const wxString& name = wxPyListBoxNameStr); const wxString& name = wxPyListBoxNameStr);
%name(PreCheckListBox)wxCheckListBox(); %name(PreCheckListBox)wxCheckListBox();
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
//int choices = 0, wxString* choices_array = NULL, //int choices = 0, wxString* choices_array = NULL,

View File

@ -41,8 +41,8 @@ public:
%pythonAppend wxMDIParentFrame() "" %pythonAppend wxMDIParentFrame() ""
wxMDIParentFrame(wxWindow *parent, wxMDIParentFrame(wxWindow *parent,
const wxWindowID id, const wxWindowID id=-1,
const wxString& title, const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
@ -50,8 +50,8 @@ public:
%name(PreMDIParentFrame)wxMDIParentFrame(); %name(PreMDIParentFrame)wxMDIParentFrame();
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
const wxWindowID id, const wxWindowID id=-1,
const wxString& title, const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
@ -88,8 +88,8 @@ public:
%pythonAppend wxMDIChildFrame() "" %pythonAppend wxMDIChildFrame() ""
wxMDIChildFrame(wxMDIParentFrame* parent, wxMDIChildFrame(wxMDIParentFrame* parent,
const wxWindowID id, const wxWindowID id=-1,
const wxString& title, const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
@ -97,8 +97,8 @@ public:
%name(PreMDIChildFrame)wxMDIChildFrame(); %name(PreMDIChildFrame)wxMDIChildFrame();
bool Create(wxMDIParentFrame* parent, bool Create(wxMDIParentFrame* parent,
const wxWindowID id, const wxWindowID id=-1,
const wxString& title, const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,

View File

@ -178,7 +178,7 @@ public:
%name(PreNotebook)wxNotebook(); %name(PreNotebook)wxNotebook();
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
@ -308,7 +308,7 @@ public:
%name(PreListbook)wxListbook(); %name(PreListbook)wxListbook();
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,

View File

@ -106,7 +106,7 @@ public:
%pythonAppend wxPyControl "self._setOORInfo(self); self._setCallbackInfo(self, PyControl)" %pythonAppend wxPyControl "self._setOORInfo(self); self._setCallbackInfo(self, PyControl)"
%pythonAppend wxPyControl() "" %pythonAppend wxPyControl() ""
wxPyControl(wxWindow* parent, const wxWindowID id, wxPyControl(wxWindow* parent, const wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,

View File

@ -136,7 +136,7 @@ public:
%pythonAppend wxPyWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)" %pythonAppend wxPyWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)"
%pythonAppend wxPyWindow() "" %pythonAppend wxPyWindow() ""
wxPyWindow(wxWindow* parent, const wxWindowID id, wxPyWindow(wxWindow* parent, const wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
@ -281,7 +281,7 @@ public:
%pythonAppend wxPyPanel "self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)" %pythonAppend wxPyPanel "self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)"
%pythonAppend wxPyPanel() "" %pythonAppend wxPyPanel() ""
wxPyPanel(wxWindow* parent, const wxWindowID id, wxPyPanel(wxWindow* parent, const wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
@ -418,7 +418,7 @@ public:
%pythonAppend wxPyScrolledWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)" %pythonAppend wxPyScrolledWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)"
%pythonAppend wxPyScrolledWindow() "" %pythonAppend wxPyScrolledWindow() ""
wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, wxPyScrolledWindow(wxWindow* parent, const wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,

View File

@ -31,8 +31,8 @@ public:
%pythonAppend wxRadioBox "self._setOORInfo(self)" %pythonAppend wxRadioBox "self._setOORInfo(self)"
%pythonAppend wxRadioBox() "" %pythonAppend wxRadioBox() ""
wxRadioBox(wxWindow* parent, wxWindowID id, wxRadioBox(wxWindow* parent, wxWindowID id=-1,
const wxString& label, const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
//int choices = 0, wxString* choices_array = NULL, //int choices = 0, wxString* choices_array = NULL,
@ -43,8 +43,8 @@ public:
const wxString& name = wxPyRadioBoxNameStr); const wxString& name = wxPyRadioBoxNameStr);
%name(PreRadioBox)wxRadioBox(); %name(PreRadioBox)wxRadioBox();
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id=-1,
const wxString& label, const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
//int choices = 0, wxString* choices_array = NULL, //int choices = 0, wxString* choices_array = NULL,
@ -104,8 +104,8 @@ public:
%pythonAppend wxRadioButton "self._setOORInfo(self)" %pythonAppend wxRadioButton "self._setOORInfo(self)"
%pythonAppend wxRadioButton() "" %pythonAppend wxRadioButton() ""
wxRadioButton(wxWindow* parent, wxWindowID id, wxRadioButton(wxWindow* parent, wxWindowID id=-1,
const wxString& label, const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
@ -113,8 +113,8 @@ public:
const wxString& name = wxPyRadioButtonNameStr); const wxString& name = wxPyRadioButtonNameStr);
%name(PreRadioButton)wxRadioButton(); %name(PreRadioButton)wxRadioButton();
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id=-1,
const wxString& label, const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,

View File

@ -56,14 +56,14 @@ public:
%pythonAppend wxSashWindow "self._setOORInfo(self)" %pythonAppend wxSashWindow "self._setOORInfo(self)"
%pythonAppend wxSashWindow() "" %pythonAppend wxSashWindow() ""
wxSashWindow(wxWindow* parent, wxWindowID id, wxSashWindow(wxWindow* parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCLIP_CHILDREN | wxSW_3D, long style = wxCLIP_CHILDREN | wxSW_3D,
const wxString& name = wxPySashNameStr); const wxString& name = wxPySashNameStr);
%name(PreSashWindow)wxSashWindow(); %name(PreSashWindow)wxSashWindow();
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCLIP_CHILDREN | wxSW_3D, long style = wxCLIP_CHILDREN | wxSW_3D,
@ -244,14 +244,14 @@ public:
%pythonAppend wxSashLayoutWindow "self._setOORInfo(self)" %pythonAppend wxSashLayoutWindow "self._setOORInfo(self)"
%pythonAppend wxSashLayoutWindow() "" %pythonAppend wxSashLayoutWindow() ""
wxSashLayoutWindow(wxWindow* parent, wxWindowID id, wxSashLayoutWindow(wxWindow* parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCLIP_CHILDREN | wxSW_3D, long style = wxCLIP_CHILDREN | wxSW_3D,
const wxString& name = wxPySashLayoutNameStr); const wxString& name = wxPySashLayoutNameStr);
%name(PreSashLayoutWindow)wxSashLayoutWindow(); %name(PreSashLayoutWindow)wxSashLayoutWindow();
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxCLIP_CHILDREN | wxSW_3D, long style = wxCLIP_CHILDREN | wxSW_3D,

View File

@ -34,8 +34,8 @@ public:
%pythonAppend wxSlider "self._setOORInfo(self)" %pythonAppend wxSlider "self._setOORInfo(self)"
%pythonAppend wxSlider() "" %pythonAppend wxSlider() ""
wxSlider(wxWindow* parent, wxWindowID id, wxSlider(wxWindow* parent, wxWindowID id=-1,
int value, int minValue, int maxValue, int value=0, int minValue=0, int maxValue=100,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxSL_HORIZONTAL, long style = wxSL_HORIZONTAL,
@ -43,8 +43,8 @@ public:
const wxString& name = wxPySliderNameStr); const wxString& name = wxPySliderNameStr);
%name(PreSlider)wxSlider(); %name(PreSlider)wxSlider();
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id=-1,
int value, int minValue, int maxValue, int value=0, int minValue=0, int maxValue=100,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxSL_HORIZONTAL, long style = wxSL_HORIZONTAL,

View File

@ -30,14 +30,16 @@ public:
%pythonAppend wxStaticBox "self._setOORInfo(self)" %pythonAppend wxStaticBox "self._setOORInfo(self)"
%pythonAppend wxStaticBox() "" %pythonAppend wxStaticBox() ""
wxStaticBox(wxWindow* parent, wxWindowID id, const wxString& label, wxStaticBox(wxWindow* parent, wxWindowID id=-1,
const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxPyStaticBoxNameStr); const wxString& name = wxPyStaticBoxNameStr);
%name(PreStaticBox)wxStaticBox(); %name(PreStaticBox)wxStaticBox();
bool Create(wxWindow* parent, wxWindowID id, const wxString& label, bool Create(wxWindow* parent, wxWindowID id=-1,
const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
@ -59,14 +61,14 @@ public:
%pythonAppend wxStaticLine "self._setOORInfo(self)" %pythonAppend wxStaticLine "self._setOORInfo(self)"
%pythonAppend wxStaticLine() "" %pythonAppend wxStaticLine() ""
wxStaticLine( wxWindow *parent, wxWindowID id, wxStaticLine( wxWindow *parent, wxWindowID id=-1,
const wxPoint &pos = wxDefaultPosition, const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize, const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL, long style = wxLI_HORIZONTAL,
const wxString& name = wxPyStaticTextNameStr); const wxString& name = wxPyStaticTextNameStr);
%name(PreStaticLine)wxStaticLine(); %name(PreStaticLine)wxStaticLine();
bool Create( wxWindow *parent, wxWindowID id, bool Create( wxWindow *parent, wxWindowID id=-1,
const wxPoint &pos = wxDefaultPosition, const wxPoint &pos = wxDefaultPosition,
const wxSize &size = wxDefaultSize, const wxSize &size = wxDefaultSize,
long style = wxLI_HORIZONTAL, long style = wxLI_HORIZONTAL,
@ -93,14 +95,16 @@ public:
%pythonAppend wxStaticText "self._setOORInfo(self)" %pythonAppend wxStaticText "self._setOORInfo(self)"
%pythonAppend wxStaticText() "" %pythonAppend wxStaticText() ""
wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label, wxStaticText(wxWindow* parent, wxWindowID id=-1,
const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxPyStaticTextNameStr); const wxString& name = wxPyStaticTextNameStr);
%name(PreStaticText)wxStaticText(); %name(PreStaticText)wxStaticText();
bool Create(wxWindow* parent, wxWindowID id, const wxString& label, bool Create(wxWindow* parent, wxWindowID id=-1,
const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
@ -120,16 +124,16 @@ public:
%pythonAppend wxStaticBitmap "self._setOORInfo(self)" %pythonAppend wxStaticBitmap "self._setOORInfo(self)"
%pythonAppend wxStaticBitmap() "" %pythonAppend wxStaticBitmap() ""
wxStaticBitmap(wxWindow* parent, wxWindowID id, wxStaticBitmap(wxWindow* parent, wxWindowID id=-1,
const wxBitmap& bitmap, const wxBitmap& bitmap = wxNullBitmap,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxPyStaticBitmapNameStr); const wxString& name = wxPyStaticBitmapNameStr);
%name(PreStaticBitmap)wxStaticBitmap(); %name(PreStaticBitmap)wxStaticBitmap();
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id=-1,
const wxBitmap& bitmap, const wxBitmap& bitmap = wxNullBitmap,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,

View File

@ -36,7 +36,7 @@ public:
const wxString& name = wxPyStatusLineNameStr); const wxString& name = wxPyStatusLineNameStr);
%name(PreStatusBar)wxStatusBar(); %name(PreStatusBar)wxStatusBar();
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id=-1,
long style = wxST_SIZEGRIP, long style = wxST_SIZEGRIP,
const wxString& name = wxPyStatusLineNameStr); const wxString& name = wxPyStatusLineNameStr);

View File

@ -168,7 +168,7 @@ public:
%pythonAppend wxTextCtrl "self._setOORInfo(self)" %pythonAppend wxTextCtrl "self._setOORInfo(self)"
%pythonAppend wxTextCtrl() "" %pythonAppend wxTextCtrl() ""
wxTextCtrl(wxWindow* parent, wxWindowID id, wxTextCtrl(wxWindow* parent, wxWindowID id=-1,
const wxString& value = wxPyEmptyString, const wxString& value = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
@ -177,7 +177,7 @@ public:
const wxString& name = wxPyTextCtrlNameStr); const wxString& name = wxPyTextCtrlNameStr);
%name(PreTextCtrl)wxTextCtrl(); %name(PreTextCtrl)wxTextCtrl();
bool Create(wxWindow* parent, wxWindowID id, bool Create(wxWindow* parent, wxWindowID id=-1,
const wxString& value = wxPyEmptyString, const wxString& value = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,

View File

@ -59,8 +59,8 @@ public:
%pythonAppend wxToggleButton() "" %pythonAppend wxToggleButton() ""
wxToggleButton(wxWindow *parent, wxToggleButton(wxWindow *parent,
wxWindowID id, wxWindowID id=-1,
const wxString& label, const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
@ -69,8 +69,8 @@ public:
%name(PreToggleButton)wxToggleButton(); %name(PreToggleButton)wxToggleButton();
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id=-1,
const wxString& label, const wxString& label = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,

View File

@ -282,6 +282,7 @@ public:
%# For consistency with the backwards compatible methods above, here are %# For consistency with the backwards compatible methods above, here are
%# some non-'Label' versions of the Check and Radio methods %# some non-'Label' versions of the Check and Radio methods
def AddCheckTool(self, id, bitmap, def AddCheckTool(self, id, bitmap,
bmpDisabled = wx.NullBitmap, bmpDisabled = wx.NullBitmap,
shortHelp = '', longHelp = '', shortHelp = '', longHelp = '',
@ -392,7 +393,7 @@ public:
%pythonAppend wxToolBar() "" %pythonAppend wxToolBar() ""
wxToolBar(wxWindow *parent, wxToolBar(wxWindow *parent,
wxWindowID id, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxNO_BORDER | wxTB_HORIZONTAL, long style = wxNO_BORDER | wxTB_HORIZONTAL,
@ -400,7 +401,7 @@ public:
%name(PreToolBar)wxToolBar(); %name(PreToolBar)wxToolBar();
bool Create(wxWindow *parent, bool Create(wxWindow *parent,
wxWindowID id, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxNO_BORDER | wxTB_HORIZONTAL, long style = wxNO_BORDER | wxTB_HORIZONTAL,

View File

@ -152,14 +152,16 @@ public:
%pythonAppend wxFrame "self._setOORInfo(self)" %pythonAppend wxFrame "self._setOORInfo(self)"
%pythonAppend wxFrame() "" %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 wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxPyFrameNameStr); const wxString& name = wxPyFrameNameStr);
%name(PreFrame)wxFrame(); %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 wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
@ -265,8 +267,8 @@ public:
%pythonAppend wxDialog() "" %pythonAppend wxDialog() ""
wxDialog(wxWindow* parent, wxDialog(wxWindow* parent,
const wxWindowID id, const wxWindowID id=-1,
const wxString& title, const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE, long style = wxDEFAULT_DIALOG_STYLE,
@ -274,8 +276,8 @@ public:
%name(PreDialog)wxDialog(); %name(PreDialog)wxDialog();
bool Create(wxWindow* parent, bool Create(wxWindow* parent,
const wxWindowID id, const wxWindowID id=-1,
const wxString& title, const wxString& title = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE, long style = wxDEFAULT_DIALOG_STYLE,
@ -322,14 +324,16 @@ public:
%pythonAppend wxMiniFrame "self._setOORInfo(self)" %pythonAppend wxMiniFrame "self._setOORInfo(self)"
%pythonAppend wxMiniFrame() "" %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 wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxPyFrameNameStr); const wxString& name = wxPyFrameNameStr);
%name(PreMiniFrame)wxMiniFrame(); %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 wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, long style = wxDEFAULT_FRAME_STYLE,
@ -376,7 +380,7 @@ public:
%pythonAppend wxSplashScreen "self._setOORInfo(self)" %pythonAppend wxSplashScreen "self._setOORInfo(self)"
wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds,
wxWindow* parent, wxWindowID id, wxWindow* parent, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP); long style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP);

View File

@ -491,7 +491,7 @@ the borders, scrollbars, other decorations...)", "");
DocStr(GetBestSize, DocStr(GetBestSize,
"This functions returns the best acceptable minimal size for the "This function returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will window, if applicable. For example, for a static text control, it will
be the minimal size such that the control label is not truncated. For be the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned by windows containing subwindows (suzh aswx.Panel), the size returned by

View File

@ -1555,7 +1555,7 @@ public:
%pythonAppend wxGrid "self._setOORInfo(self)" %pythonAppend wxGrid "self._setOORInfo(self)"
wxGrid( wxWindow *parent, wxGrid( wxWindow *parent,
wxWindowID id, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxWANTS_CHARS, long style = wxWANTS_CHARS,
@ -1565,7 +1565,7 @@ public:
bool Create( wxWindow *parent, bool Create( wxWindow *parent,
wxWindowID id, wxWindowID id=-1,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxWANTS_CHARS, long style = wxWANTS_CHARS,