Removed automatic "Magic Event Methods" bindings
Added explicit bindings where needed other assorted odds and ends git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -71,7 +71,7 @@ class wxColourDialog(wxColourDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxColourDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdDialogCallbacks(self)
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ class wxDirDialog(wxDirDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxDirDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdDialogCallbacks(self)
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ class wxFileDialog(wxFileDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxFileDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdDialogCallbacks(self)
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdDialogCallbacks(self)
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -221,7 +221,7 @@ class wxTextEntryDialog(wxTextEntryDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxTextEntryDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdDialogCallbacks(self)
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -302,7 +302,7 @@ class wxFontDialog(wxFontDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxFontDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdDialogCallbacks(self)
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -320,7 +320,7 @@ class wxMessageDialog(wxMessageDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(cmndlgsc.new_wxMessageDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdDialogCallbacks(self)
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ class wxControl(wxControlPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxControl,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ class wxButton(wxButtonPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxButton,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ class wxBitmapButton(wxBitmapButtonPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxBitmapButton,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ class wxCheckBox(wxCheckBoxPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxCheckBox,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ class wxChoice(wxChoicePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxChoice,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -244,7 +244,7 @@ class wxComboBox(wxComboBoxPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxComboBox,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ class wxGauge(wxGaugePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxGauge,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -332,7 +332,7 @@ class wxStaticText(wxStaticTextPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxStaticText,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -401,7 +401,7 @@ class wxListBox(wxListBoxPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxListBox,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -428,7 +428,7 @@ class wxCheckListBox(wxCheckListBoxPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxCheckListBox,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -551,7 +551,7 @@ class wxTextCtrl(wxTextCtrlPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxTextCtrl,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -587,7 +587,7 @@ class wxScrollBar(wxScrollBarPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxScrollBar,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -641,7 +641,7 @@ class wxStaticBitmap(wxStaticBitmapPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxStaticBitmap,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -695,7 +695,7 @@ class wxRadioBox(wxRadioBoxPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxRadioBox,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -716,7 +716,7 @@ class wxRadioButton(wxRadioButtonPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxRadioButton,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -788,7 +788,7 @@ class wxSlider(wxSliderPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controlsc.new_wxSlider,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -485,7 +485,7 @@ class wxListCtrl(wxListCtrlPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controls2c.new_wxListCtrl,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -814,7 +814,7 @@ class wxTreeCtrl(wxTreeCtrlPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(controls2c.new_wxTreeCtrl,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
self._setSelf(self, wxTreeCtrl)
|
||||
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ class wxFrame(wxFramePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(framesc.new_wxFrame,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdFrameCallbacks(self)
|
||||
#wx._StdFrameCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ class wxMiniFrame(wxMiniFramePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(framesc.new_wxMiniFrame,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdFrameCallbacks(self)
|
||||
#wx._StdFrameCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6991,6 +6991,62 @@ static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, P
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
|
||||
static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDC * _arg0;
|
||||
int _arg1;
|
||||
int _arg2;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self","x","y", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
|
||||
static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDC * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxDC_ResetBoundingBox(_arg0);
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static void *SwigwxMemoryDCTowxDC(void *ptr) {
|
||||
wxMemoryDC *src;
|
||||
wxDC *dest;
|
||||
@@ -8100,6 +8156,8 @@ static PyMethodDef gdicMethods[] = {
|
||||
{ "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
|
||||
|
||||
@@ -682,6 +682,12 @@ class wxDCPtr :
|
||||
def SetAxisOrientation(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxDC_SetAxisOrientation,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def CalcBoundingBox(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxDC_CalcBoundingBox,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ResetBoundingBox(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxDC_ResetBoundingBox,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxDC instance at %s>" % (self.this,)
|
||||
class wxDC(wxDCPtr):
|
||||
|
||||
@@ -5888,6 +5888,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxMDIParentFrame","_class_wxMDIParentFrame",0},
|
||||
{ "_class_wxTreeEvent","_wxTreeEvent",0},
|
||||
{ "_class_wxDirDialog","_wxDirDialog",0},
|
||||
{ "_wxTimeSpan","_class_wxTimeSpan",0},
|
||||
{ "_wxFocusEvent","_class_wxFocusEvent",0},
|
||||
{ "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
|
||||
{ "_class_wxTimerEvent","_wxTimerEvent",0},
|
||||
@@ -5940,6 +5941,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxWindow","_wxPyHtmlWindow",SwigwxPyHtmlWindowTowxWindow},
|
||||
{ "_class_wxWindow","_wxWindow",0},
|
||||
{ "_wxSplitterWindow","_class_wxSplitterWindow",0},
|
||||
{ "_wxDateSpan","_class_wxDateSpan",0},
|
||||
{ "_class_wxStaticText","_wxStaticText",0},
|
||||
{ "_wxPrintDialogData","_class_wxPrintDialogData",0},
|
||||
{ "_class_wxFont","_wxFont",0},
|
||||
@@ -6069,6 +6071,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxMDIParentFrame","_wxMDIParentFrame",0},
|
||||
{ "_wxPyTreeItemData","_class_wxPyTreeItemData",0},
|
||||
{ "_wxStaticBoxSizer","_class_wxStaticBoxSizer",0},
|
||||
{ "_class_wxTimeSpan","_wxTimeSpan",0},
|
||||
{ "_wxHtmlDCRenderer","_class_wxHtmlDCRenderer",0},
|
||||
{ "_class_wxPaintDC","_wxPaintDC",0},
|
||||
{ "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
|
||||
@@ -6108,6 +6111,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxSplitterWindow","_wxSplitterWindow",0},
|
||||
{ "_wxPreviewFrame","_class_wxPreviewFrame",0},
|
||||
{ "_wxSizer","_class_wxSizer",0},
|
||||
{ "_class_wxDateSpan","_wxDateSpan",0},
|
||||
{ "_class_wxShowEvent","_wxShowEvent",0},
|
||||
{ "_class_wxPyTipProvider","_wxPyTipProvider",0},
|
||||
{ "_class_wxPCXHandler","_wxPCXHandler",0},
|
||||
|
||||
@@ -570,8 +570,8 @@ class wxHtmlWindow(wxHtmlWindowPtr):
|
||||
self.this = apply(htmlc.new_wxHtmlWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
self._setSelf(self, wxHtmlWindow)
|
||||
wx._StdWindowCallbacks(self)
|
||||
wx._StdOnScrollCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
#wx._StdOnScrollCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2871,6 +2871,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_wxMDIParentFrame","_class_wxMDIParentFrame",0},
|
||||
{ "_class_wxTreeEvent","_wxTreeEvent",0},
|
||||
{ "_class_wxDirDialog","_wxDirDialog",0},
|
||||
{ "_wxTimeSpan","_class_wxTimeSpan",0},
|
||||
{ "_wxFocusEvent","_class_wxFocusEvent",0},
|
||||
{ "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
|
||||
{ "_class_wxTimerEvent","_wxTimerEvent",0},
|
||||
@@ -2921,6 +2922,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxWindow","_wxHtmlHelpFrame",SwigwxHtmlHelpFrameTowxWindow},
|
||||
{ "_class_wxWindow","_wxWindow",0},
|
||||
{ "_wxSplitterWindow","_class_wxSplitterWindow",0},
|
||||
{ "_wxDateSpan","_class_wxDateSpan",0},
|
||||
{ "_class_wxStaticText","_wxStaticText",0},
|
||||
{ "_wxPrintDialogData","_class_wxPrintDialogData",0},
|
||||
{ "_class_wxFont","_wxFont",0},
|
||||
@@ -3049,6 +3051,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxMDIParentFrame","_wxMDIParentFrame",0},
|
||||
{ "_wxPyTreeItemData","_class_wxPyTreeItemData",0},
|
||||
{ "_wxStaticBoxSizer","_class_wxStaticBoxSizer",0},
|
||||
{ "_class_wxTimeSpan","_wxTimeSpan",0},
|
||||
{ "_wxHtmlDCRenderer","_class_wxHtmlDCRenderer",0},
|
||||
{ "_class_wxPaintDC","_wxPaintDC",0},
|
||||
{ "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
|
||||
@@ -3089,6 +3092,7 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
|
||||
{ "_class_wxSplitterWindow","_wxSplitterWindow",0},
|
||||
{ "_wxPreviewFrame","_class_wxPreviewFrame",0},
|
||||
{ "_wxSizer","_class_wxSizer",0},
|
||||
{ "_class_wxDateSpan","_wxDateSpan",0},
|
||||
{ "_class_wxShowEvent","_wxShowEvent",0},
|
||||
{ "_class_wxPyTipProvider","_wxPyTipProvider",0},
|
||||
{ "_class_wxPCXHandler","_wxPCXHandler",0},
|
||||
|
||||
@@ -57,7 +57,7 @@ class wxMDIParentFrame(wxMDIParentFramePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(mdic.new_wxMDIParentFrame,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdFrameCallbacks(self)
|
||||
#wx._StdFrameCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ class wxMDIChildFrame(wxMDIChildFramePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(mdic.new_wxMDIChildFrame,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdFrameCallbacks(self)
|
||||
#wx._StdFrameCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@ class wxMDIClientWindow(wxMDIClientWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(mdic.new_wxMDIClientWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
wx._StdOnScrollCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
#wx._StdOnScrollCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ class wxPageSetupDialog(wxPageSetupDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPageSetupDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdDialogCallbacks(self)
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -325,7 +325,7 @@ class wxPrintDialog(wxPrintDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPrintDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdDialogCallbacks(self)
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -508,7 +508,7 @@ class wxPreviewFrame(wxPreviewFramePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(printfwc.new_wxPreviewFrame,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdFrameCallbacks(self)
|
||||
#wx._StdFrameCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class wxStatusBar(wxStatusBarPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(stattoolc.new_wxStatusBar,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -308,7 +308,7 @@ class wxToolBar(wxToolBarPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(stattoolc.new_wxToolBar,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -327,7 +327,7 @@ class wxToolBarSimple(wxToolBarSimplePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(stattoolc.new_wxToolBarSimple,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6795,6 +6795,94 @@ static PyObject *_wrap_wxDateSpan_GetTotalDays(PyObject *self, PyObject *args, P
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDateSpan_Add(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
|
||||
static PyObject *_wrap_wxDateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDateSpan * _result;
|
||||
wxDateSpan * _arg0;
|
||||
wxDateSpan * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","other", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan_Add",_kwnames,&_argo0,&_argo1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Add. Expected _wxDateSpan_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan_Add. Expected _wxDateSpan_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxDateSpan & _result_ref = wxDateSpan_Add(_arg0,*_arg1);
|
||||
_result = (wxDateSpan *) &_result_ref;
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDateSpan_Subtract(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
|
||||
static PyObject *_wrap_wxDateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxDateSpan * _result;
|
||||
wxDateSpan * _arg0;
|
||||
wxDateSpan * _arg1;
|
||||
PyObject * _argo0 = 0;
|
||||
PyObject * _argo1 = 0;
|
||||
char *_kwnames[] = { "self","other", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDateSpan_Subtract",_kwnames,&_argo0,&_argo1))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDateSpan_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDateSpan_Subtract. Expected _wxDateSpan_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
if (_argo1) {
|
||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDateSpan_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDateSpan_Subtract. Expected _wxDateSpan_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
wxPy_BEGIN_ALLOW_THREADS;
|
||||
wxDateSpan & _result_ref = wxDateSpan_Subtract(_arg0,*_arg1);
|
||||
_result = (wxDateSpan *) &_result_ref;
|
||||
|
||||
wxPy_END_ALLOW_THREADS;
|
||||
} if (_result) {
|
||||
SWIG_MakePtr(_ptemp, (char *) _result,"_wxDateSpan_p");
|
||||
_resultobj = Py_BuildValue("s",_ptemp);
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
_resultobj = Py_None;
|
||||
}
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxDateSpan_Neg(_swigobj) (_swigobj->Neg())
|
||||
static PyObject *_wrap_wxDateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -7039,6 +7127,8 @@ static PyMethodDef utilscMethods[] = {
|
||||
{ "wxDateSpan___add__", (PyCFunction) _wrap_wxDateSpan___add__, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateSpan_Multiply", (PyCFunction) _wrap_wxDateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateSpan_Neg", (PyCFunction) _wrap_wxDateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateSpan_Subtract", (PyCFunction) _wrap_wxDateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateSpan_Add", (PyCFunction) _wrap_wxDateSpan_Add, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateSpan_GetTotalDays", (PyCFunction) _wrap_wxDateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateSpan_GetDays", (PyCFunction) _wrap_wxDateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxDateSpan_GetWeeks", (PyCFunction) _wrap_wxDateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
|
||||
|
||||
@@ -737,6 +737,14 @@ class wxDateSpanPtr :
|
||||
def GetTotalDays(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_GetTotalDays,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Add(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Add,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val)
|
||||
return val
|
||||
def Subtract(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Subtract,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val)
|
||||
return val
|
||||
def Neg(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxDateSpan_Neg,(self,) + _args, _kwargs)
|
||||
if val: val = wxDateSpanPtr(val)
|
||||
|
||||
@@ -505,7 +505,7 @@ class wxWindow(wxWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -537,7 +537,7 @@ class wxPanel(wxPanelPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxPanel,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -588,7 +588,7 @@ class wxDialog(wxDialogPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxDialog,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdDialogCallbacks(self)
|
||||
#wx._StdDialogCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -649,8 +649,8 @@ class wxScrolledWindow(wxScrolledWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windowsc.new_wxScrolledWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
wx._StdOnScrollCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
#wx._StdOnScrollCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ class wxNotebook(wxNotebookPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows2c.new_wxNotebook,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ class wxSplitterWindow(wxSplitterWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows2c.new_wxSplitterWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ class wxSashWindow(wxSashWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows3c.new_wxSashWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
|
||||
|
||||
|
||||
@@ -214,9 +214,9 @@ class wxSashLayoutWindow(wxSashLayoutWindowPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(windows3c.new_wxSashLayoutWindow,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
wx._StdWindowCallbacks(self)
|
||||
wx._checkForCallback(self, 'OnCalculateLayout', wxEVT_CALCULATE_LAYOUT)
|
||||
wx._checkForCallback(self, 'OnQueryLayoutInfo', wxEVT_QUERY_LAYOUT_INFO)
|
||||
#wx._StdWindowCallbacks(self)
|
||||
#wx._checkForCallback(self, 'OnCalculateLayout', wxEVT_CALCULATE_LAYOUT)
|
||||
#wx._checkForCallback(self, 'OnQueryLayoutInfo', wxEVT_QUERY_LAYOUT_INFO)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -858,41 +858,41 @@ _wxSetDictionary(vars())
|
||||
# Helper function to link python methods to wxWindows virtual
|
||||
# functions by name.
|
||||
|
||||
def _checkForCallback(obj, name, event, theID=-1):
|
||||
try: cb = getattr(obj, name)
|
||||
except: pass
|
||||
else: obj.Connect(theID, -1, event, cb)
|
||||
## def _checkForCallback(obj, name, event, theID=-1):
|
||||
## try: cb = getattr(obj, name)
|
||||
## except: pass
|
||||
## else: obj.Connect(theID, -1, event, cb)
|
||||
|
||||
def _StdWindowCallbacks(win):
|
||||
_checkForCallback(win, "OnChar", wxEVT_CHAR)
|
||||
_checkForCallback(win, "OnSize", wxEVT_SIZE)
|
||||
_checkForCallback(win, "OnEraseBackground", wxEVT_ERASE_BACKGROUND)
|
||||
_checkForCallback(win, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED)
|
||||
_checkForCallback(win, "OnInitDialog", wxEVT_INIT_DIALOG)
|
||||
_checkForCallback(win, "OnPaint", wxEVT_PAINT)
|
||||
_checkForCallback(win, "OnIdle", wxEVT_IDLE)
|
||||
## def _StdWindowCallbacks(win):
|
||||
## _checkForCallback(win, "OnChar", wxEVT_CHAR)
|
||||
## _checkForCallback(win, "OnSize", wxEVT_SIZE)
|
||||
## _checkForCallback(win, "OnEraseBackground", wxEVT_ERASE_BACKGROUND)
|
||||
## _checkForCallback(win, "OnSysColourChanged", wxEVT_SYS_COLOUR_CHANGED)
|
||||
## _checkForCallback(win, "OnInitDialog", wxEVT_INIT_DIALOG)
|
||||
## _checkForCallback(win, "OnPaint", wxEVT_PAINT)
|
||||
## _checkForCallback(win, "OnIdle", wxEVT_IDLE)
|
||||
|
||||
|
||||
def _StdFrameCallbacks(win):
|
||||
_StdWindowCallbacks(win)
|
||||
_checkForCallback(win, "OnActivate", wxEVT_ACTIVATE)
|
||||
_checkForCallback(win, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT)
|
||||
_checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
|
||||
## def _StdFrameCallbacks(win):
|
||||
## _StdWindowCallbacks(win)
|
||||
## _checkForCallback(win, "OnActivate", wxEVT_ACTIVATE)
|
||||
## _checkForCallback(win, "OnMenuHighlight", wxEVT_MENU_HIGHLIGHT)
|
||||
## _checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
|
||||
|
||||
|
||||
def _StdDialogCallbacks(win):
|
||||
_StdWindowCallbacks(win)
|
||||
_checkForCallback(win, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK)
|
||||
_checkForCallback(win, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED, wxID_APPLY)
|
||||
_checkForCallback(win, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL)
|
||||
_checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
|
||||
_checkForCallback(win, "OnCharHook", wxEVT_CHAR_HOOK)
|
||||
## def _StdDialogCallbacks(win):
|
||||
## _StdWindowCallbacks(win)
|
||||
## _checkForCallback(win, "OnOk", wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK)
|
||||
## _checkForCallback(win, "OnApply", wxEVT_COMMAND_BUTTON_CLICKED, wxID_APPLY)
|
||||
## _checkForCallback(win, "OnCancel", wxEVT_COMMAND_BUTTON_CLICKED, wxID_CANCEL)
|
||||
## _checkForCallback(win, "OnCloseWindow", wxEVT_CLOSE_WINDOW)
|
||||
## _checkForCallback(win, "OnCharHook", wxEVT_CHAR_HOOK)
|
||||
|
||||
|
||||
def _StdOnScrollCallbacks(win):
|
||||
try: cb = getattr(win, "OnScroll")
|
||||
except: pass
|
||||
else: EVT_SCROLL(win, cb)
|
||||
## def _StdOnScrollCallbacks(win):
|
||||
## try: cb = getattr(win, "OnScroll")
|
||||
## except: pass
|
||||
## else: EVT_SCROLL(win, cb)
|
||||
|
||||
|
||||
|
||||
@@ -1360,15 +1360,9 @@ def EVT_SPIN_UP(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
|
||||
|
||||
def EVT_SPIN_DOWN(win, id, func):
|
||||
win.Connect(id, -1,wxEVT_SCROLL_LINEDOWN, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
|
||||
|
||||
def EVT_SPIN(win, id, func):
|
||||
win.Connect(id, -1, wxEVT_SCROLL_TOP, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLL_BOTTOM, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLL_LINEUP, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLL_LINEDOWN, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLL_PAGEUP, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLL_PAGEDOWN, func)
|
||||
win.Connect(id, -1, wxEVT_SCROLL_THUMBTRACK,func)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user