|
Re: Help with passing parameteres to a callback routine (newbie): msg#00170gnome.gtk+.python
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> |
|---|---|---|
| Previous by Date: | Help with passing parameteres to a callback routine (newbie): 00170, Peter Stokes |
|---|---|
| Next by Date: | Image confusions: 00170, Colin Fox |
| Previous by Thread: | Help with passing parameteres to a callback routine (newbie)i: 00170, Peter Stokes |
| Next by Thread: | Image confusions: 00170, Colin Fox |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |