using inspect on pygtk
Chris Pax
christopher.pax at gmail.com
Fri Sep 28 21:57:50 EDT 2007
More information about the Python-list mailing list
Fri Sep 28 21:57:50 EDT 2007
- Previous message (by thread): cute use of lambda
- Next message (by thread): Bug: spurious indentation error
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): cute use of lambda
- Next message (by thread): Bug: spurious indentation error
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list