names of parameters as string

From: andrea valle (andrea.valle_at_unito.it)
Date: 10/29/04


Date: Fri, 29 Oct 2004 17:57:25 +0200
To: python-list@python.org

Hi to all,
I'd like to access the parameter list of a function (or better of a
method) in order to generate GUI elements.
That is.
If I have this:

>>> def foo( foo_param1, foo_param2):
                print foo_param

I'd like to have something like:

>>> print foo.param_list
>>> 'foo_param1', 'foo_param2'

My idea is to use the foo_params strings in Tkinter as text for Label
and as variables for Entries.

What have I to do?

Thanks a lot as usual

Best

-a-

_____________________________________________________________________
For your security, this mail has been scanned and protected by Inflex