[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] How to find the python description of gr.*
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] How to find the python description of gr.* |
Date: |
Fri, 14 Aug 2009 10:57:55 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Thu, Aug 13, 2009 at 01:24:04PM -0700, Milo Wong wrote:
> Hi,
>
> I have read Eric's "howto-write-a-signal-processing-block", but I still got
> a question. Is there anyway I could find the python description of gr.*
> modules(or functions). I browsed both "gnuradio-core/src/python/gnuradio/gr"
> and "python2.6/dist-packages/gnuradio/gr", but I found nothing but several
> swig generated files.
>
> In howto_square_ff example, the command "import howto" imports SWIG
> generated "howto.py" module and applies "howto.square_ff" block. But in
> "tx_voive.py" example, how could I find the description of "gr.message_sink"
> or "gr.msg_queue" in python? It seems there's not such a file called
> "gr.py". I think "gr.*" are also generated by SWIG from their C++ Class, but
> I simply can't find them. Appreciate your help.
>
> Thank you!
>
> Milo
Milo,
A large part of what shows up in Python are C++ classes that have been
interfaced to Python using SWIG to generate the glue code.
For things like gr.msg_queue, look in the C++ documentation for gr_msg_queue.
Go here (or build the docs in your own directory):
http://gnuradio.org/doc/doxygen/index.html
Then click on Class List in the left hand column.
Then click on gr_msg_queue.
Eric