That, or something like it, should work. Have you tried it?
On Sun, 2002-05-26 at 10:50, Collins wrote:
> Is there a way to code a python function that receives an object that
> can be invoked in that function, i.e. the equivalent of passing in a
> pointer to funtion in C code and invoking that function or passing its
> address to another function.
>
> Something like the following code snippet.
>
> def callback(widget,entry) :
> pass
>
> def function(rtn1) :
> . . .
> b2 = GtkRadioButton(label="Full list")
> b2.connect("pressed", rtn1, b2)
> ...
>
> ...
> function(callback)
> ...
>
>
>
> --
> Collins Richey - Denver Area - WWTLRD?
> gentoo(since 01/01/01) 2.4.18+(ext3) xfce-sylpheed-mozilla
> _______________________________________________
> pygtk mailing list [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/