Le vendredi 21 mars 2014 16:50:18 UTC, Mark H. Harris a écrit :
> > def TheProc(): <== you moved c_int from here ...
>
> > fpgui.fpgFormWindowTitle(0, 'Boum')
>
> > return 0
> > CMPFUNC = CFUNCTYPE(c_int) < and placed it here ...
>
>
> ... it wa
On 3/21/14 7:02 AM, fienspr...@gmail.com wrote:
Yep, Many thanks for help
Hum, i have find the solution, it was in "CallBack function" in help-doc.
No, it was not in the "CallBack function" in help-doc ...
def TheProc(): <== you moved c_int from here ...
f
> I'm afraid it doesn't help that GoogleGroups has badly mangled the
>
> formatting of your code. I'm not quite sure what to suggest since it
>
> isn't one of the usual problems, but you might find reading
>
> https://wiki.python.org/moin/GoogleGroupsPython helpful. It will
>
> certai
On Thu, 20 Mar 2014 23:56:43 -, wrote:
Give the function call its required argument and the error will go
away... well, at least that one.
Yep, many thanks for the answer.
But... im totally beginner with Python.
I develop in Pascal and C and want to understand the basics of Python.
In c
On Friday, March 21, 2014 7:56:43 AM UTC+8, fiens...@gmail.com wrote:
> > Give the function call its required argument and the error will go
>
> >
>
> > away... well, at least that one.
>
>
>
> Yep, many thanks for the answer.
>
> But... im totally beginner with Python.
>
> I develop in Pa
> Give the function call its required argument and the error will go
>
> away... well, at least that one.
Yep, many thanks for the answer.
But... im totally beginner with Python.
I develop in Pascal and C and want to understand the basics of Python.
In concrete, what must i change in the code ?
On 3/20/14 6:16 PM, fienspr...@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
Hello. I want to use a c library. It is a complete graphic widget set.
Here code working. But i have problem with the callback function. The callback
is executed while ClikOnForm is executed but i get a error message (see after
code )
_