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. 4 1351
On Sep 28, 9:57 pm, Chris Pax <christopher....@gmail.comwrote:
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?
>I recently been trying to use the inspect module to inspect the arguments of gtk objects, such as gtk.Button. ....
does anybody have any idea?
Chris ....
You might try the following newsgroup on the Gmane server
for Python / Gtk questions ....
gmane.comp.gnome.gtk+.python
--
Stanley C. Kitching
Human Being
Phoenix, Arizona
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
On 9/29/07, Chris Pax <ch*************@gmail.comwrote:
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
What you are seeing is completely normal. inspect.getargspec(sys.exit)
gives the same result. PyGTK is a wrapper around the GTK+ C library
and since all the code is written in C, inspect can't infer anything
about the function gtk.Button.__init__.
--
mvh Björn
On Oct 1, 12:53 pm, "BJörn Lindqvist" <bjou...@gmail.comwrote:
On 9/29/07, Chris Pax <christopher....@gmail.comwrote:
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
What you are seeing is completely normal. inspect.getargspec(sys.exit)
gives the same result. PyGTK is a wrapper around the GTK+ C library
and since all the code is written in C, inspect can't infer anything
about the function gtk.Button.__init__.
--
mvh Björn
ok thank you very much for answering my question.
so, i guess that there is no way to do this via code.. oh well This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: j_mckitrick |
last post by:
I am having a problem with combo boxes. If I am using an XML glade2
file for my gui definition, what is the command I need to use to
access a given combo box and determine the currently selected...
|
by: j_mckitrick |
last post by:
Hi all. Here is a tiny container for one of each combo box, along
with the glade file. Just 2 widgets, so hopefully not too large. How
the heck do I get the selection from the ComboBox, as...
|
by: Mark Mitchell |
last post by:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have a program written in python that tells me it requires PyGTK, so I
DLed, ./configure, make, make install and the process seems to go ok. Some...
|
by: Thomas Bartkus |
last post by:
I am experimenting (flailing around?) with glade and python. Both under MS
Windows and Linux.
I understand why I want to "import gtk"
It gives me access to the critical gui program loop...
|
by: Rod W |
last post by:
I'm just starting out on Python but my primary goal is to provide
applications with some user interface (GUI).
Can someone point me to a good comparison of whether I should use
wxPython (with...
|
by: Richard Taylor |
last post by:
User-Agent: OSXnews 2.07
Xref: number1.nntp.dca.giganews.com comp.lang.python:437315
Hi
I am trying to use py2app (http://undefined.org/python/) to package a
gnome-python application...
|
by: krishnakant Mane |
last post by:
hello,
I will be writing some code in PyGTK to run on linux. but I want to
know if there are any installers or distutils available for PyGTK on
windows?
I have heard that installing gimp or even...
|
by: He Jibo |
last post by:
Hi, Everyone,
Could someone help me how to install pygtk? I get some problems with
it.
Here is the error I get while install pygtk:
https://netfiles.uiuc.edu/jibohe2/error.GIF?uniq=-k6678k
...
|
by: rajasankar |
last post by:
Hi,
I am using Jython based application and trying to use inspect.py in the python files.
Here is my code
import inspect,os,sys,pprint,imp
def handle_stackframe_without_leak(getframe):
...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
| |