using inspect on pygtk

Chris Pax christopher.pax at gmail.com
Mon Oct 1 08:30:09 EDT 2007


On Sep 28, 9:57 pm, Chris Pax <christopher.... at gmail.com> wrote:
> Hello,
>
> I recently been trying to use the inspect module to inspect the
> arguments of gtk objects, such as gtk.Button. I tried like this:
>
> inspect.getargspec(gtk.Button.__init__)
>
> and get the fallowing error:
>
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.5/inspect.py", line 743, in getargspec
>     raise TypeError('arg is not a Python function')
> TypeError: arg is not a Python function
>
> I have been trying to do this through code so that I don't have to
> have a list of all possible gtk classes and their arguments.

does anybody have any idea?




More information about the Python-list mailing list