names of parameters as string
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.
If I have this:
>>> def foo( foo_param1, foo_param2):
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
For your security, this mail has been scanned and protected by Inflex
More information about the Python-list