names of parameters as string

andrea valle andrea.valle at unito.it
Fri Oct 29 17:57:25 CEST 2004


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



More information about the Python-list mailing list