Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68642
| From | Mark H Harris <harrismh777@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: CallBack function in C Libraries. |
| Date | 2014-03-20 18:42 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <lgfucb$4q7$1@speranza.aioe.org> (permalink) |
| References | <a9908cb7-3566-42a8-a468-8179ac1df7ab@googlegroups.com> |
On 3/20/14 6:16 PM, fiensproto@gmail.com wrote: > def TheProc(c_int): fpgui.fpgFormWindowTitle(0, 'Boum') > return 0 > TheProcF = CMPFUNC(TheProc) > Traceback (most recent call last): File "_ctypes/callbacks.c", > line 314, in 'calling callback function' TypeError: TheProc() takes > exactly 1 argument (0 given) > What is wrong ? You defined TheProc(c_init) to take exactly 1 argument. But when you called it, you didn't provide the argument. So, you got a traceback indicating that TheProc() takes exactly one argument. Give the function call its required argument and the error will go away... well, at least that one. Cheers
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
CallBack function in C Libraries. fiensproto@gmail.com - 2014-03-20 16:16 -0700
Re: CallBack function in C Libraries. Mark H Harris <harrismh777@gmail.com> - 2014-03-20 18:42 -0500
Re: CallBack function in C Libraries. fiensproto@gmail.com - 2014-03-20 16:56 -0700
Re: CallBack function in C Libraries. 88888 Dihedral <dihedral88888@gmail.com> - 2014-03-20 17:04 -0700
Re: CallBack function in C Libraries. "Rhodri James" <rhodri@wildebst.org.uk> - 2014-03-21 02:01 +0000
Re: CallBack function in C Libraries. fiensproto@gmail.com - 2014-03-21 05:02 -0700
Re: CallBack function in C Libraries. Mark H Harris <harrismh777@gmail.com> - 2014-03-21 11:50 -0500
Re: CallBack function in C Libraries. fiensproto@gmail.com - 2014-03-21 17:22 -0700
csiph-web