On 2/11/08, Jose Emilio Gervilla Rega <[EMAIL PROTECTED]> wrote:

>  if __name__ == '__main__':
>        try:
>            my_top_block().run()
>        except KeyboardInterrupt:
>            pass
>
>  I think that it is ok and with these lines the program should stop by
> pushing ENTER but it doesn't.

In Python, a KeyboardInterrupt is caused by Ctrl-C, not by hitting any
key.  The above code snippet is acting as it should.

If you want the flowgraph to end with an Enter key:

if __name__ == '__main__':
    tb.start()
    raw_input("Press Enter to stop.")
    tb.stop()
    tb.wait()

-- 
Johnathan Corgan
Corgan Enterprises LLC
http://corganenterprises.com/


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to