logo       

Re: Help with passing parameteres to a callback routine (newbie): msg#00170

gnome.gtk+.python

Subject: Re: Help with passing parameteres to a callback routine (newbie)

On Sat, Aug 23, 2003 at 02:16:43PM +0100, Peter Stokes wrote:

> I am a newbie to Python and Pygtk, so please bear with me if this is the
> millionth time you have been asked this.
>
> I have written my first program with Radio buttons and need to
> understand how do I pass AND use a a parameter by reference (list called
> Company),

Since variables are always references in python, so are all function
parameters. As long as you pass a mutable object like a list, dict, or
user-defined object, you should be able to change it in your callback; so
something else is going on here. I'd put a print in the callback to see
whether the condition is ever met for the insert to happen.

Dave Cook

_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise