[pygtk] wrapping custom functions
John Finlay
finlay at moeraki.com
Mon Sep 7 06:34:59 WST 2009
gabriele lanaro wrote:
> Hi list,
>
> I'm wrapping a function like that:
>
> int gtk_scintilla_base_find_text( GtkScintillaBase *sci,int flags,
> long start, long end,
> char *text, long *ostart, long *oend);
>
> but codegen can't wrap the function because of the long * type.
>
> In addition I have also to modify this function overriding it in the
> override file ( ostart and oend are output parameters) with the %%
> override directive.
>
> There's a way to define a brand new function in the override file
> instead of defining-in-header/overriding it?
You can add a new function or method using the "define" directive in an
override file.
define funcname [kwargs|noargs|onearg]
[classmethod|staticmethod]
define Class.method [kwargs|noargs|onearg]
[classmethod|staticmethod]
There are some examples in the pygtk override files.
John
More information about the pygtk
mailing list