wxPython updates for 2.3.4.2 --> 2.4.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3555,6 +3555,51 @@ static PyObject *_wrap_wxXmlDocument_GetEncoding(PyObject *self, PyObject *args,
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void wxXmlDocument_SetEncoding(wxXmlDocument *self,const wxString & enc) {
|
||||||
|
#if wxUSE_UNICODE
|
||||||
|
// do nothing
|
||||||
|
#else
|
||||||
|
self->SetEncoding(enc);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
static PyObject *_wrap_wxXmlDocument_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxXmlDocument * _arg0;
|
||||||
|
wxString * _arg1;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
PyObject * _obj1 = 0;
|
||||||
|
char *_kwnames[] = { "self","enc", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlDocument_SetEncoding",_kwnames,&_argo0,&_obj1))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlDocument_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlDocument_SetEncoding. Expected _wxXmlDocument_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
_arg1 = wxString_in_helper(_obj1);
|
||||||
|
if (_arg1 == NULL)
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
wxXmlDocument_SetEncoding(_arg0,*_arg1);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
{
|
||||||
|
if (_obj1)
|
||||||
|
delete _arg1;
|
||||||
|
}
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
static void *SwigwxPyXmlResourceHandlerTowxObject(void *ptr) {
|
static void *SwigwxPyXmlResourceHandlerTowxObject(void *ptr) {
|
||||||
wxPyXmlResourceHandler *src;
|
wxPyXmlResourceHandler *src;
|
||||||
wxObject *dest;
|
wxObject *dest;
|
||||||
@@ -5041,6 +5086,7 @@ static PyMethodDef xrccMethods[] = {
|
|||||||
{ "wxXmlResourceHandler_CreateResource", (PyCFunction) _wrap_wxXmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS },
|
{ "wxXmlResourceHandler_CreateResource", (PyCFunction) _wrap_wxXmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxXmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_wxXmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
|
{ "wxXmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_wxXmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "new_wxXmlResourceHandler", (PyCFunction) _wrap_new_wxXmlResourceHandler, METH_VARARGS | METH_KEYWORDS },
|
{ "new_wxXmlResourceHandler", (PyCFunction) _wrap_new_wxXmlResourceHandler, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxXmlDocument_SetEncoding", (PyCFunction) _wrap_wxXmlDocument_SetEncoding, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxXmlDocument_GetEncoding", (PyCFunction) _wrap_wxXmlDocument_GetEncoding, METH_VARARGS | METH_KEYWORDS },
|
{ "wxXmlDocument_GetEncoding", (PyCFunction) _wrap_wxXmlDocument_GetEncoding, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxXmlDocument_SetFileEncoding", (PyCFunction) _wrap_wxXmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS },
|
{ "wxXmlDocument_SetFileEncoding", (PyCFunction) _wrap_wxXmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxXmlDocument_SetVersion", (PyCFunction) _wrap_wxXmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS },
|
{ "wxXmlDocument_SetVersion", (PyCFunction) _wrap_wxXmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
|||||||
@@ -411,6 +411,13 @@ public:
|
|||||||
return self->GetEncoding();
|
return self->GetEncoding();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
void SetEncoding(const wxString& enc) {
|
||||||
|
#if wxUSE_UNICODE
|
||||||
|
// do nothing
|
||||||
|
#else
|
||||||
|
self->SetEncoding(enc);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -342,6 +342,9 @@ class wxXmlDocumentPtr(wxObjectPtr):
|
|||||||
def GetEncoding(self, *_args, **_kwargs):
|
def GetEncoding(self, *_args, **_kwargs):
|
||||||
val = apply(xrcc.wxXmlDocument_GetEncoding,(self,) + _args, _kwargs)
|
val = apply(xrcc.wxXmlDocument_GetEncoding,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def SetEncoding(self, *_args, **_kwargs):
|
||||||
|
val = apply(xrcc.wxXmlDocument_SetEncoding,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "<C wxXmlDocument instance at %s>" % (self.this,)
|
return "<C wxXmlDocument instance at %s>" % (self.this,)
|
||||||
class wxXmlDocument(wxXmlDocumentPtr):
|
class wxXmlDocument(wxXmlDocumentPtr):
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class RunDemoApp(wxApp):
|
|||||||
wxInitAllImageHandlers()
|
wxInitAllImageHandlers()
|
||||||
wxLog_SetActiveTarget(wxLogStderr())
|
wxLog_SetActiveTarget(wxLogStderr())
|
||||||
|
|
||||||
frame = wxFrame(None, -1, "RunDemo: " + self.name, size=(0,0),
|
frame = wxFrame(None, -1, "RunDemo: " + self.name, pos=(50,50), size=(0,0),
|
||||||
style=wxNO_FULL_REPAINT_ON_RESIZE|wxDEFAULT_FRAME_STYLE)
|
style=wxNO_FULL_REPAINT_ON_RESIZE|wxDEFAULT_FRAME_STYLE)
|
||||||
frame.CreateStatusBar()
|
frame.CreateStatusBar()
|
||||||
menuBar = wxMenuBar()
|
menuBar = wxMenuBar()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ from my_distutils import run_swig, contrib_copy_tree
|
|||||||
# flags and values that affect this script
|
# flags and values that affect this script
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
VERSION = "2.3.4.2"
|
VERSION = "2.4.0p1"
|
||||||
DESCRIPTION = "Cross platform GUI toolkit for Python"
|
DESCRIPTION = "Cross platform GUI toolkit for Python"
|
||||||
AUTHOR = "Robin Dunn"
|
AUTHOR = "Robin Dunn"
|
||||||
AUTHOR_EMAIL = "Robin Dunn <robin@alldunn.com>"
|
AUTHOR_EMAIL = "Robin Dunn <robin@alldunn.com>"
|
||||||
@@ -92,7 +92,7 @@ HYBRID = 1 # If set and not debug or FINAL, then build a
|
|||||||
# wxWindows must have been built with /MD, not /MDd
|
# wxWindows must have been built with /MD, not /MDd
|
||||||
# (using FINAL=hybrid will do it.)
|
# (using FINAL=hybrid will do it.)
|
||||||
|
|
||||||
WXDLLVER = '234' # Version part of wxWindows DLL name
|
WXDLLVER = '240' # Version part of wxWindows DLL name
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
ver = '2.3.4.2'
|
ver = '2.4.0p1'
|
||||||
|
|||||||
@@ -1304,12 +1304,11 @@ public:
|
|||||||
void SelectItem(const wxTreeItemId& item);
|
void SelectItem(const wxTreeItemId& item);
|
||||||
void EnsureVisible(const wxTreeItemId& item);
|
void EnsureVisible(const wxTreeItemId& item);
|
||||||
void ScrollTo(const wxTreeItemId& item);
|
void ScrollTo(const wxTreeItemId& item);
|
||||||
#ifdef __WXMSW__
|
|
||||||
wxTextCtrl* EditLabel(const wxTreeItemId& item);
|
|
||||||
wxTextCtrl* GetEditControl();
|
wxTextCtrl* GetEditControl();
|
||||||
void EndEditLabel(const wxTreeItemId& item, int discardChanges = FALSE);
|
|
||||||
#else
|
|
||||||
void EditLabel(const wxTreeItemId& item);
|
void EditLabel(const wxTreeItemId& item);
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
void EndEditLabel(const wxTreeItemId& item, int discardChanges = FALSE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void SortChildren(const wxTreeItemId& item);
|
void SortChildren(const wxTreeItemId& item);
|
||||||
|
|||||||
@@ -141,6 +141,12 @@ public:
|
|||||||
|
|
||||||
static void AddHandler(wxFileSystemHandler *handler);
|
static void AddHandler(wxFileSystemHandler *handler);
|
||||||
static void CleanUpHandlers();
|
static void CleanUpHandlers();
|
||||||
|
|
||||||
|
// // Returns the native path for a file URL
|
||||||
|
// static wxFileName URLToFileName(const wxString& url);
|
||||||
|
|
||||||
|
// // Returns the file URL for a native path
|
||||||
|
// static wxString FileNameToURL(const wxFileName& filename);
|
||||||
};
|
};
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -747,6 +747,9 @@ public:
|
|||||||
wxControl* GetControl();
|
wxControl* GetControl();
|
||||||
void SetControl(wxControl* control);
|
void SetControl(wxControl* control);
|
||||||
|
|
||||||
|
wxGridCellAttr* GetCellAttr();
|
||||||
|
void SetCellAttr(wxGridCellAttr* attr);
|
||||||
|
|
||||||
void SetParameters(const wxString& params);
|
void SetParameters(const wxString& params);
|
||||||
void IncRef();
|
void IncRef();
|
||||||
void DecRef();
|
void DecRef();
|
||||||
|
|||||||
@@ -8864,6 +8864,34 @@ static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObj
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
|
||||||
|
static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxTextCtrl * _result;
|
||||||
|
wxPyTreeCtrl * _arg0;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "self", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
_result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
}{ _resultobj = wxPyMake_wxObject(_result); }
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
|
#define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
|
||||||
static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -10701,6 +10729,7 @@ static PyMethodDef controls2cMethods[] = {
|
|||||||
{ "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
|
{ "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
|
{ "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
|
{ "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
|
{ "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
|
{ "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
|
{ "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
|||||||
@@ -1102,6 +1102,9 @@ class wxTreeCtrlPtr(wxControlPtr):
|
|||||||
def ScrollTo(self, *_args, **_kwargs):
|
def ScrollTo(self, *_args, **_kwargs):
|
||||||
val = apply(controls2c.wxTreeCtrl_ScrollTo,(self,) + _args, _kwargs)
|
val = apply(controls2c.wxTreeCtrl_ScrollTo,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def GetEditControl(self, *_args, **_kwargs):
|
||||||
|
val = apply(controls2c.wxTreeCtrl_GetEditControl,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def EditLabel(self, *_args, **_kwargs):
|
def EditLabel(self, *_args, **_kwargs):
|
||||||
val = apply(controls2c.wxTreeCtrl_EditLabel,(self,) + _args, _kwargs)
|
val = apply(controls2c.wxTreeCtrl_EditLabel,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
|||||||
@@ -1902,6 +1902,71 @@ static PyObject *_wrap_wxGridCellEditor_SetControl(PyObject *self, PyObject *arg
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxGridCellEditor_GetCellAttr(_swigobj) (_swigobj->GetCellAttr())
|
||||||
|
static PyObject *_wrap_wxGridCellEditor_GetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxGridCellAttr * _result;
|
||||||
|
wxGridCellEditor * _arg0;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "self", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridCellEditor_GetCellAttr",_kwnames,&_argo0))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridCellEditor_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridCellEditor_GetCellAttr. Expected _wxGridCellEditor_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
_result = (wxGridCellAttr *)wxGridCellEditor_GetCellAttr(_arg0);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
}{ _resultobj = wxPyMake_wxGridCellAttr(_result); }
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define wxGridCellEditor_SetCellAttr(_swigobj,_swigarg0) (_swigobj->SetCellAttr(_swigarg0))
|
||||||
|
static PyObject *_wrap_wxGridCellEditor_SetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxGridCellEditor * _arg0;
|
||||||
|
wxGridCellAttr * _arg1;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
PyObject * _argo1 = 0;
|
||||||
|
char *_kwnames[] = { "self","attr", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGridCellEditor_SetCellAttr",_kwnames,&_argo0,&_argo1))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridCellEditor_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridCellEditor_SetCellAttr. Expected _wxGridCellEditor_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (_argo1) {
|
||||||
|
if (_argo1 == Py_None) { _arg1 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGridCellAttr_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGridCellEditor_SetCellAttr. Expected _wxGridCellAttr_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
wxGridCellEditor_SetCellAttr(_arg0,_arg1);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxGridCellEditor_SetParameters(_swigobj,_swigarg0) (_swigobj->SetParameters(_swigarg0))
|
#define wxGridCellEditor_SetParameters(_swigobj,_swigarg0) (_swigobj->SetParameters(_swigarg0))
|
||||||
static PyObject *_wrap_wxGridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxGridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -14783,6 +14848,8 @@ static PyMethodDef gridcMethods[] = {
|
|||||||
{ "wxGridCellEditor_DecRef", (PyCFunction) _wrap_wxGridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_DecRef", (PyCFunction) _wrap_wxGridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_IncRef", (PyCFunction) _wrap_wxGridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_IncRef", (PyCFunction) _wrap_wxGridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_SetParameters", (PyCFunction) _wrap_wxGridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_SetParameters", (PyCFunction) _wrap_wxGridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxGridCellEditor_SetCellAttr", (PyCFunction) _wrap_wxGridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxGridCellEditor_GetCellAttr", (PyCFunction) _wrap_wxGridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_SetControl", (PyCFunction) _wrap_wxGridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_SetControl", (PyCFunction) _wrap_wxGridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_GetControl", (PyCFunction) _wrap_wxGridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_GetControl", (PyCFunction) _wrap_wxGridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGridCellEditor_IsCreated", (PyCFunction) _wrap_wxGridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGridCellEditor_IsCreated", (PyCFunction) _wrap_wxGridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
|||||||
@@ -255,6 +255,12 @@ class wxGridCellEditorPtr :
|
|||||||
def SetControl(self, *_args, **_kwargs):
|
def SetControl(self, *_args, **_kwargs):
|
||||||
val = apply(gridc.wxGridCellEditor_SetControl,(self,) + _args, _kwargs)
|
val = apply(gridc.wxGridCellEditor_SetControl,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def GetCellAttr(self, *_args, **_kwargs):
|
||||||
|
val = apply(gridc.wxGridCellEditor_GetCellAttr,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def SetCellAttr(self, *_args, **_kwargs):
|
||||||
|
val = apply(gridc.wxGridCellEditor_SetCellAttr,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def SetParameters(self, *_args, **_kwargs):
|
def SetParameters(self, *_args, **_kwargs):
|
||||||
val = apply(gridc.wxGridCellEditor_SetParameters,(self,) + _args, _kwargs)
|
val = apply(gridc.wxGridCellEditor_SetParameters,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
|||||||
@@ -2463,6 +2463,35 @@ static PyObject *_wrap_wxBoxSizer_GetOrientation(PyObject *self, PyObject *args,
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxBoxSizer_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0))
|
||||||
|
static PyObject *_wrap_wxBoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxBoxSizer * _arg0;
|
||||||
|
int _arg1;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "self","orient", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBoxSizer_SetOrientation",_kwnames,&_argo0,&_arg1))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBoxSizer_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBoxSizer_SetOrientation. Expected _wxBoxSizer_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
wxBoxSizer_SetOrientation(_arg0,_arg1);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxBoxSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
|
#define wxBoxSizer_RecalcSizes(_swigobj) (_swigobj->RecalcSizes())
|
||||||
static PyObject *_wrap_wxBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -3393,6 +3422,7 @@ static PyMethodDef sizerscMethods[] = {
|
|||||||
{ "new_wxStaticBoxSizer", (PyCFunction) _wrap_new_wxStaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
|
{ "new_wxStaticBoxSizer", (PyCFunction) _wrap_new_wxStaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxBoxSizer_CalcMin", (PyCFunction) _wrap_wxBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
|
{ "wxBoxSizer_CalcMin", (PyCFunction) _wrap_wxBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxBoxSizer_RecalcSizes", (PyCFunction) _wrap_wxBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
|
{ "wxBoxSizer_RecalcSizes", (PyCFunction) _wrap_wxBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxBoxSizer_SetOrientation", (PyCFunction) _wrap_wxBoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxBoxSizer_GetOrientation", (PyCFunction) _wrap_wxBoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
|
{ "wxBoxSizer_GetOrientation", (PyCFunction) _wrap_wxBoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "new_wxBoxSizer", (PyCFunction) _wrap_new_wxBoxSizer, METH_VARARGS | METH_KEYWORDS },
|
{ "new_wxBoxSizer", (PyCFunction) _wrap_new_wxBoxSizer, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxPySizer__setCallbackInfo", (PyCFunction) _wrap_wxPySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
|
{ "wxPySizer__setCallbackInfo", (PyCFunction) _wrap_wxPySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
|||||||
@@ -339,6 +339,9 @@ class wxBoxSizerPtr(wxSizerPtr):
|
|||||||
def GetOrientation(self, *_args, **_kwargs):
|
def GetOrientation(self, *_args, **_kwargs):
|
||||||
val = apply(sizersc.wxBoxSizer_GetOrientation,(self,) + _args, _kwargs)
|
val = apply(sizersc.wxBoxSizer_GetOrientation,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def SetOrientation(self, *_args, **_kwargs):
|
||||||
|
val = apply(sizersc.wxBoxSizer_SetOrientation,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def RecalcSizes(self, *_args, **_kwargs):
|
def RecalcSizes(self, *_args, **_kwargs):
|
||||||
val = apply(sizersc.wxBoxSizer_RecalcSizes,(self,) + _args, _kwargs)
|
val = apply(sizersc.wxBoxSizer_RecalcSizes,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
|||||||
@@ -2328,6 +2328,7 @@ SWIGEXPORT(void) initwizardc() {
|
|||||||
PyDict_SetItemString(d,"wxEVT_WIZARD_PAGE_CHANGING", PyInt_FromLong((long) wxEVT_WIZARD_PAGE_CHANGING));
|
PyDict_SetItemString(d,"wxEVT_WIZARD_PAGE_CHANGING", PyInt_FromLong((long) wxEVT_WIZARD_PAGE_CHANGING));
|
||||||
PyDict_SetItemString(d,"wxEVT_WIZARD_CANCEL", PyInt_FromLong((long) wxEVT_WIZARD_CANCEL));
|
PyDict_SetItemString(d,"wxEVT_WIZARD_CANCEL", PyInt_FromLong((long) wxEVT_WIZARD_CANCEL));
|
||||||
PyDict_SetItemString(d,"wxEVT_WIZARD_HELP", PyInt_FromLong((long) wxEVT_WIZARD_HELP));
|
PyDict_SetItemString(d,"wxEVT_WIZARD_HELP", PyInt_FromLong((long) wxEVT_WIZARD_HELP));
|
||||||
|
PyDict_SetItemString(d,"wxEVT_WIZARD_FINISHED", PyInt_FromLong((long) wxEVT_WIZARD_FINISHED));
|
||||||
|
|
||||||
wxClassInfo::CleanUpClasses();
|
wxClassInfo::CleanUpClasses();
|
||||||
wxClassInfo::InitializeClasses();
|
wxClassInfo::InitializeClasses();
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ def EVT_WIZARD_CANCEL(win, id, func):
|
|||||||
def EVT_WIZARD_HELP(win, id, func):
|
def EVT_WIZARD_HELP(win, id, func):
|
||||||
win.Connect(id, -1, wxEVT_WIZARD_HELP, func)
|
win.Connect(id, -1, wxEVT_WIZARD_HELP, func)
|
||||||
|
|
||||||
|
def EVT_WIZARD_FINISHED(win, id, func):
|
||||||
|
win.Connect(id, -1, wxEVT_WIZARD_FINISHED, func)
|
||||||
|
|
||||||
|
|
||||||
class wxWizardEventPtr(wxNotifyEventPtr):
|
class wxWizardEventPtr(wxNotifyEventPtr):
|
||||||
def __init__(self,this):
|
def __init__(self,this):
|
||||||
@@ -264,6 +267,7 @@ wxEVT_WIZARD_PAGE_CHANGED = wizardc.wxEVT_WIZARD_PAGE_CHANGED
|
|||||||
wxEVT_WIZARD_PAGE_CHANGING = wizardc.wxEVT_WIZARD_PAGE_CHANGING
|
wxEVT_WIZARD_PAGE_CHANGING = wizardc.wxEVT_WIZARD_PAGE_CHANGING
|
||||||
wxEVT_WIZARD_CANCEL = wizardc.wxEVT_WIZARD_CANCEL
|
wxEVT_WIZARD_CANCEL = wizardc.wxEVT_WIZARD_CANCEL
|
||||||
wxEVT_WIZARD_HELP = wizardc.wxEVT_WIZARD_HELP
|
wxEVT_WIZARD_HELP = wizardc.wxEVT_WIZARD_HELP
|
||||||
|
wxEVT_WIZARD_FINISHED = wizardc.wxEVT_WIZARD_FINISHED
|
||||||
|
|
||||||
|
|
||||||
#-------------- USER INCLUDE -----------------------
|
#-------------- USER INCLUDE -----------------------
|
||||||
|
|||||||
@@ -339,6 +339,7 @@ public:
|
|||||||
wxBoxSizer(int orient = wxHORIZONTAL);
|
wxBoxSizer(int orient = wxHORIZONTAL);
|
||||||
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
|
||||||
int GetOrientation();
|
int GetOrientation();
|
||||||
|
void SetOrientation(int orient);
|
||||||
void RecalcSizes();
|
void RecalcSizes();
|
||||||
wxSize CalcMin();
|
wxSize CalcMin();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ enum {
|
|||||||
wxEVT_WIZARD_PAGE_CHANGED,
|
wxEVT_WIZARD_PAGE_CHANGED,
|
||||||
wxEVT_WIZARD_PAGE_CHANGING,
|
wxEVT_WIZARD_PAGE_CHANGING,
|
||||||
wxEVT_WIZARD_CANCEL,
|
wxEVT_WIZARD_CANCEL,
|
||||||
wxEVT_WIZARD_HELP
|
wxEVT_WIZARD_HELP,
|
||||||
|
wxEVT_WIZARD_FINISHED
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -61,6 +62,9 @@ def EVT_WIZARD_CANCEL(win, id, func):
|
|||||||
def EVT_WIZARD_HELP(win, id, func):
|
def EVT_WIZARD_HELP(win, id, func):
|
||||||
win.Connect(id, -1, wxEVT_WIZARD_HELP, func)
|
win.Connect(id, -1, wxEVT_WIZARD_HELP, func)
|
||||||
|
|
||||||
|
def EVT_WIZARD_FINISHED(win, id, func):
|
||||||
|
win.Connect(id, -1, wxEVT_WIZARD_FINISHED, func)
|
||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user