SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -113,13 +113,6 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
|||||||
return Py_None;
|
return Py_None;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString wxGetResource(const wxString& section, const wxString& entry,
|
|
||||||
const wxString& file = wxPyEmptyString) {
|
|
||||||
wxChar * retval;
|
|
||||||
wxGetResource(section, entry, &retval, file);
|
|
||||||
return retval;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if 0 // we want to use the definition from the header, not the
|
#if 0 // we want to use the definition from the header, not the
|
||||||
// one SWIG will generate.
|
// one SWIG will generate.
|
||||||
extern wxAcceleratorTable wxNullAcceleratorTable;
|
extern wxAcceleratorTable wxNullAcceleratorTable;
|
||||||
@@ -623,67 +616,6 @@ static PyObject *_wrap_wxEnableTopLevelWindows(PyObject *self, PyObject *args, P
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *_wrap_wxGetResource(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
wxString * _result;
|
|
||||||
wxString * _arg0;
|
|
||||||
wxString * _arg1;
|
|
||||||
wxString * _arg2 = (wxString *) &wxPyEmptyString;
|
|
||||||
PyObject * _obj0 = 0;
|
|
||||||
PyObject * _obj1 = 0;
|
|
||||||
PyObject * _obj2 = 0;
|
|
||||||
char *_kwnames[] = { "section","entry","file", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxGetResource",_kwnames,&_obj0,&_obj1,&_obj2))
|
|
||||||
return NULL;
|
|
||||||
{
|
|
||||||
_arg0 = wxString_in_helper(_obj0);
|
|
||||||
if (_arg0 == NULL)
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
_arg1 = wxString_in_helper(_obj1);
|
|
||||||
if (_arg1 == NULL)
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
if (_obj2)
|
|
||||||
{
|
|
||||||
_arg2 = wxString_in_helper(_obj2);
|
|
||||||
if (_arg2 == NULL)
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
_result = new wxString (wxGetResource(*_arg0,*_arg1,*_arg2));
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
}{
|
|
||||||
#if wxUSE_UNICODE
|
|
||||||
_resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
|
|
||||||
#else
|
|
||||||
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
{
|
|
||||||
if (_obj0)
|
|
||||||
delete _arg0;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
if (_obj1)
|
|
||||||
delete _arg1;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
if (_obj2)
|
|
||||||
delete _arg2;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
delete _result;
|
|
||||||
}
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *_wrap_wxStripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxStripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
wxString * _result;
|
wxString * _result;
|
||||||
@@ -4630,7 +4562,6 @@ static PyMethodDef misccMethods[] = {
|
|||||||
{ "wxGetHostName", (PyCFunction) _wrap_wxGetHostName, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGetHostName", (PyCFunction) _wrap_wxGetHostName, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGetEmailAddress", (PyCFunction) _wrap_wxGetEmailAddress, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGetEmailAddress", (PyCFunction) _wrap_wxGetEmailAddress, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxStripMenuCodes", (PyCFunction) _wrap_wxStripMenuCodes, METH_VARARGS | METH_KEYWORDS },
|
{ "wxStripMenuCodes", (PyCFunction) _wrap_wxStripMenuCodes, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGetResource", (PyCFunction) _wrap_wxGetResource, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxEnableTopLevelWindows", (PyCFunction) _wrap_wxEnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
|
{ "wxEnableTopLevelWindows", (PyCFunction) _wrap_wxEnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxYieldIfNeeded", (PyCFunction) _wrap_wxYieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
|
{ "wxYieldIfNeeded", (PyCFunction) _wrap_wxYieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxYield", (PyCFunction) _wrap_wxYield, METH_VARARGS | METH_KEYWORDS },
|
{ "wxYield", (PyCFunction) _wrap_wxYield, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -621,8 +621,6 @@ wxYieldIfNeeded = miscc.wxYieldIfNeeded
|
|||||||
|
|
||||||
wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
|
wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
|
||||||
|
|
||||||
wxGetResource = miscc.wxGetResource
|
|
||||||
|
|
||||||
wxStripMenuCodes = miscc.wxStripMenuCodes
|
wxStripMenuCodes = miscc.wxStripMenuCodes
|
||||||
|
|
||||||
wxGetEmailAddress = miscc.wxGetEmailAddress
|
wxGetEmailAddress = miscc.wxGetEmailAddress
|
||||||
|
@@ -1462,208 +1462,6 @@ static PyObject *_wrap_wxGetTopLevelParent(PyObject *self, PyObject *args, PyObj
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
bool _result;
|
|
||||||
char * _arg0;
|
|
||||||
int _arg1;
|
|
||||||
char *_kwnames[] = { "name","value", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1))
|
|
||||||
return NULL;
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
_result = (bool )wxResourceAddIdentifier(_arg0,_arg1);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} _resultobj = Py_BuildValue("i",_result);
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
char *_kwnames[] = { NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames))
|
|
||||||
return NULL;
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
wxResourceClear();
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} Py_INCREF(Py_None);
|
|
||||||
_resultobj = Py_None;
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
wxBitmap * _result;
|
|
||||||
char * _arg0;
|
|
||||||
char *_kwnames[] = { "resource", NULL };
|
|
||||||
char _ptemp[128];
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0))
|
|
||||||
return NULL;
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
_result = new wxBitmap (wxResourceCreateBitmap(_arg0));
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
|
|
||||||
_resultobj = Py_BuildValue("s",_ptemp);
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
wxIcon * _result;
|
|
||||||
char * _arg0;
|
|
||||||
char *_kwnames[] = { "resource", NULL };
|
|
||||||
char _ptemp[128];
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0))
|
|
||||||
return NULL;
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
_result = new wxIcon (wxResourceCreateIcon(_arg0));
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p");
|
|
||||||
_resultobj = Py_BuildValue("s",_ptemp);
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
wxMenuBar * _result;
|
|
||||||
char * _arg0;
|
|
||||||
char *_kwnames[] = { "resource", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0))
|
|
||||||
return NULL;
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
_result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
}{ _resultobj = wxPyMake_wxObject(_result); }
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
int _result;
|
|
||||||
char * _arg0;
|
|
||||||
char *_kwnames[] = { "name", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0))
|
|
||||||
return NULL;
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
_result = (int )wxResourceGetIdentifier(_arg0);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} _resultobj = Py_BuildValue("i",_result);
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
bool _result;
|
|
||||||
char * _arg0;
|
|
||||||
wxResourceTable * _arg1 = (wxResourceTable *) NULL;
|
|
||||||
PyObject * _argo1 = 0;
|
|
||||||
char *_kwnames[] = { "resource","table", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1))
|
|
||||||
return NULL;
|
|
||||||
if (_argo1) {
|
|
||||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
_result = (bool )wxResourceParseData(_arg0,_arg1);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} _resultobj = Py_BuildValue("i",_result);
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
bool _result;
|
|
||||||
char * _arg0;
|
|
||||||
wxResourceTable * _arg1 = (wxResourceTable *) NULL;
|
|
||||||
PyObject * _argo1 = 0;
|
|
||||||
char *_kwnames[] = { "filename","table", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1))
|
|
||||||
return NULL;
|
|
||||||
if (_argo1) {
|
|
||||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
_result = (bool )wxResourceParseFile(_arg0,_arg1);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} _resultobj = Py_BuildValue("i",_result);
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) {
|
|
||||||
PyObject * _resultobj;
|
|
||||||
bool _result;
|
|
||||||
char * _arg0;
|
|
||||||
wxResourceTable * _arg1 = (wxResourceTable *) NULL;
|
|
||||||
PyObject * _argo1 = 0;
|
|
||||||
char *_kwnames[] = { "resource","table", NULL };
|
|
||||||
|
|
||||||
self = self;
|
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1))
|
|
||||||
return NULL;
|
|
||||||
if (_argo1) {
|
|
||||||
if (_argo1 == Py_None) { _arg1 = NULL; }
|
|
||||||
else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) {
|
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p.");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
||||||
_result = (bool )wxResourceParseString(_arg0,_arg1);
|
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
|
||||||
if (PyErr_Occurred()) return NULL;
|
|
||||||
} _resultobj = Py_BuildValue("i",_result);
|
|
||||||
return _resultobj;
|
|
||||||
}
|
|
||||||
|
|
||||||
static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
int _result;
|
int _result;
|
||||||
@@ -11478,15 +11276,6 @@ static PyMethodDef misc2cMethods[] = {
|
|||||||
{ "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS },
|
{ "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
|
{ "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
|
{ "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS },
|
|
||||||
{ "wxGetTopLevelParent", (PyCFunction) _wrap_wxGetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGetTopLevelParent", (PyCFunction) _wrap_wxGetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
|
{ "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
|
{ "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -1186,32 +1186,6 @@ def wxGetTopLevelParent(*_args, **_kwargs):
|
|||||||
val = apply(misc2c.wxGetTopLevelParent,_args,_kwargs)
|
val = apply(misc2c.wxGetTopLevelParent,_args,_kwargs)
|
||||||
return val
|
return val
|
||||||
|
|
||||||
wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
|
|
||||||
|
|
||||||
wxResourceClear = misc2c.wxResourceClear
|
|
||||||
|
|
||||||
def wxResourceCreateBitmap(*_args, **_kwargs):
|
|
||||||
val = apply(misc2c.wxResourceCreateBitmap,_args,_kwargs)
|
|
||||||
if val: val = wxBitmapPtr(val); val.thisown = 1
|
|
||||||
return val
|
|
||||||
|
|
||||||
def wxResourceCreateIcon(*_args, **_kwargs):
|
|
||||||
val = apply(misc2c.wxResourceCreateIcon,_args,_kwargs)
|
|
||||||
if val: val = wxIconPtr(val); val.thisown = 1
|
|
||||||
return val
|
|
||||||
|
|
||||||
def wxResourceCreateMenuBar(*_args, **_kwargs):
|
|
||||||
val = apply(misc2c.wxResourceCreateMenuBar,_args,_kwargs)
|
|
||||||
return val
|
|
||||||
|
|
||||||
wxResourceGetIdentifier = misc2c.wxResourceGetIdentifier
|
|
||||||
|
|
||||||
wxResourceParseData = misc2c.wxResourceParseData
|
|
||||||
|
|
||||||
wxResourceParseFile = misc2c.wxResourceParseFile
|
|
||||||
|
|
||||||
wxResourceParseString = misc2c.wxResourceParseString
|
|
||||||
|
|
||||||
wxCaret_GetBlinkTime = misc2c.wxCaret_GetBlinkTime
|
wxCaret_GetBlinkTime = misc2c.wxCaret_GetBlinkTime
|
||||||
|
|
||||||
wxCaret_SetBlinkTime = misc2c.wxCaret_SetBlinkTime
|
wxCaret_SetBlinkTime = misc2c.wxCaret_SetBlinkTime
|
||||||
|
@@ -1721,14 +1721,14 @@ static PyObject *_wrap_wxToolBarBase_DoAddTool(PyObject *self, PyObject *args, P
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
static wxToolBarToolBase * wxToolBarBase_InsertTool(wxToolBarBase *self,size_t pos,int id,const wxString & label,const wxBitmap & bitmap,const wxBitmap & bmpDisabled,wxItemKind kind,const wxString & shortHelp,const wxString & longHelp,PyObject * clientData) {
|
static wxToolBarToolBase * wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,const wxString & label,const wxBitmap & bitmap,const wxBitmap & bmpDisabled,wxItemKind kind,const wxString & shortHelp,const wxString & longHelp,PyObject * clientData) {
|
||||||
wxPyUserData* udata = NULL;
|
wxPyUserData* udata = NULL;
|
||||||
if (clientData && clientData != Py_None)
|
if (clientData && clientData != Py_None)
|
||||||
udata = new wxPyUserData(clientData);
|
udata = new wxPyUserData(clientData);
|
||||||
return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
|
return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
|
||||||
shortHelp, longHelp, udata);
|
shortHelp, longHelp, udata);
|
||||||
}
|
}
|
||||||
static PyObject *_wrap_wxToolBarBase_InsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
wxToolBarToolBase * _result;
|
wxToolBarToolBase * _result;
|
||||||
wxToolBarBase * _arg0;
|
wxToolBarBase * _arg0;
|
||||||
@@ -1751,12 +1751,12 @@ static PyObject *_wrap_wxToolBarBase_InsertTool(PyObject *self, PyObject *args,
|
|||||||
char *_kwnames[] = { "self","pos","id","label","bitmap","bmpDisabled","kind","shortHelp","longHelp","clientData", NULL };
|
char *_kwnames[] = { "self","pos","id","label","bitmap","bmpDisabled","kind","shortHelp","longHelp","clientData", NULL };
|
||||||
|
|
||||||
self = self;
|
self = self;
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|OiOOO:wxToolBarBase_InsertTool",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_argo5,&_arg6,&_obj7,&_obj8,&_obj9))
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|OiOOO:wxToolBarBase_DoInsertTool",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_argo5,&_arg6,&_obj7,&_obj8,&_obj9))
|
||||||
return NULL;
|
return NULL;
|
||||||
if (_argo0) {
|
if (_argo0) {
|
||||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolBarBase_p")) {
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_InsertTool. Expected _wxToolBarBase_p.");
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolBarBase_DoInsertTool. Expected _wxToolBarBase_p.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1767,13 +1767,13 @@ static PyObject *_wrap_wxToolBarBase_InsertTool(PyObject *self, PyObject *args,
|
|||||||
}
|
}
|
||||||
if (_argo4) {
|
if (_argo4) {
|
||||||
if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxBitmap_p")) {
|
if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxBitmap_p")) {
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxToolBarBase_DoInsertTool. Expected _wxBitmap_p.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (_argo5) {
|
if (_argo5) {
|
||||||
if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxBitmap_p")) {
|
if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxBitmap_p")) {
|
||||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxToolBarBase_InsertTool. Expected _wxBitmap_p.");
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxToolBarBase_DoInsertTool. Expected _wxBitmap_p.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1795,7 +1795,7 @@ static PyObject *_wrap_wxToolBarBase_InsertTool(PyObject *self, PyObject *args,
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
_result = (wxToolBarToolBase *)wxToolBarBase_InsertTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8,_arg9);
|
_result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,*_arg7,*_arg8,_arg9);
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) return NULL;
|
if (PyErr_Occurred()) return NULL;
|
||||||
@@ -3525,7 +3525,7 @@ static PyMethodDef stattoolcMethods[] = {
|
|||||||
{ "wxToolBarBase_FindControl", (PyCFunction) _wrap_wxToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
|
{ "wxToolBarBase_FindControl", (PyCFunction) _wrap_wxToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxToolBarBase_InsertControl", (PyCFunction) _wrap_wxToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
|
{ "wxToolBarBase_InsertControl", (PyCFunction) _wrap_wxToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxToolBarBase_AddControl", (PyCFunction) _wrap_wxToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
|
{ "wxToolBarBase_AddControl", (PyCFunction) _wrap_wxToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxToolBarBase_InsertTool", (PyCFunction) _wrap_wxToolBarBase_InsertTool, METH_VARARGS | METH_KEYWORDS },
|
{ "wxToolBarBase_DoInsertTool", (PyCFunction) _wrap_wxToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxToolBarBase_DoAddTool", (PyCFunction) _wrap_wxToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
|
{ "wxToolBarBase_DoAddTool", (PyCFunction) _wrap_wxToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxToolBarToolBase_SetClientData", (PyCFunction) _wrap_wxToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
|
{ "wxToolBarToolBase_SetClientData", (PyCFunction) _wrap_wxToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxToolBarToolBase_GetClientData", (PyCFunction) _wrap_wxToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
|
{ "wxToolBarToolBase_GetClientData", (PyCFunction) _wrap_wxToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -193,8 +193,8 @@ class wxToolBarBasePtr(wxControlPtr):
|
|||||||
def DoAddTool(self, *_args, **_kwargs):
|
def DoAddTool(self, *_args, **_kwargs):
|
||||||
val = apply(stattoolc.wxToolBarBase_DoAddTool,(self,) + _args, _kwargs)
|
val = apply(stattoolc.wxToolBarBase_DoAddTool,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
def InsertTool(self, *_args, **_kwargs):
|
def DoInsertTool(self, *_args, **_kwargs):
|
||||||
val = apply(stattoolc.wxToolBarBase_InsertTool,(self,) + _args, _kwargs)
|
val = apply(stattoolc.wxToolBarBase_DoInsertTool,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
def AddControl(self, *_args, **_kwargs):
|
def AddControl(self, *_args, **_kwargs):
|
||||||
val = apply(stattoolc.wxToolBarBase_AddControl,(self,) + _args, _kwargs)
|
val = apply(stattoolc.wxToolBarBase_AddControl,(self,) + _args, _kwargs)
|
||||||
|
@@ -397,14 +397,16 @@ bool wxYield();
|
|||||||
bool wxYieldIfNeeded();
|
bool wxYieldIfNeeded();
|
||||||
void wxEnableTopLevelWindows(bool enable);
|
void wxEnableTopLevelWindows(bool enable);
|
||||||
|
|
||||||
%inline %{
|
#ifdef wxUSE_RESOURCES
|
||||||
|
inline %{
|
||||||
wxString wxGetResource(const wxString& section, const wxString& entry,
|
wxString wxGetResource(const wxString& section, const wxString& entry,
|
||||||
const wxString& file = wxPyEmptyString) {
|
const wxString& file = wxPyEmptyString) {
|
||||||
wxChar * retval;
|
wxChar* retval;
|
||||||
wxGetResource(section, entry, &retval, file);
|
wxGetResource(section, entry, &retval, file);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
#endif
|
||||||
|
|
||||||
wxString wxStripMenuCodes(const wxString& in);
|
wxString wxStripMenuCodes(const wxString& in);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user