+SWIGINTERN PyObject *_wrap_GLCanvas_InitVisual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj = 0;
+ wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
+ int *arg2 = (int *) 0 ;
+ bool result;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int *temp2 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char * kwnames[] = {
+ (char *) "self",(char *) "attribList", NULL
+ };
+
+ if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GLCanvas_InitVisual",kwnames,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGLCanvas, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLCanvas_InitVisual" "', expected argument " "1"" of type '" "wxGLCanvas *""'");
+ }
+ arg1 = reinterpret_cast< wxGLCanvas * >(argp1);
+ {
+ int i;
+ if (PySequence_Check(obj1)) {
+ int size = PyObject_Length(obj1);
+ temp2 = new int[size+1]; // (int*)malloc((size + 1) * sizeof(int));
+ for (i = 0; i < size; i++) {
+ temp2[i] = PyInt_AsLong(PySequence_GetItem(obj1, i));
+ }
+ temp2[size] = 0;
+ arg2 = temp2;
+ }
+ }
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (bool)(arg1)->InitVisual((int const *)arg2);
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
+ {
+ delete [] arg2;
+ }
+ return resultobj;
+fail:
+ {
+ delete [] arg2;
+ }
+ return NULL;
+}
+
+