~ubuntu-branches/ubuntu/trusty/gnuradio/trusty

« back to all changes in this revision

Viewing changes to gnuradio-examples/python/audio/audio_copy.py

  • Committer: Bazaar Package Importer
  • Author(s): Kamal Mostafa
  • Date: 2010-03-13 07:46:01 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100313074601-zjsa893a87bozyh7
Tags: 3.2.2.dfsg-1ubuntu1
* Fix build for Ubuntu lucid (LP: #260406)
  - add binary package dep for libusrp0, libusrp2-0: adduser
  - debian/rules clean: remove pre-built Qt moc files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
#
3
 
# Copyright 2004,2005 Free Software Foundation, Inc.
 
3
# Copyright 2004,2005,2007 Free Software Foundation, Inc.
4
4
5
5
# This file is part of GNU Radio
6
6
25
25
from gnuradio.eng_option import eng_option
26
26
from optparse import OptionParser
27
27
 
28
 
class my_graph(gr.flow_graph):
 
28
class my_top_block(gr.top_block):
29
29
 
30
30
    def __init__(self):
31
 
        gr.flow_graph.__init__(self)
 
31
        gr.top_block.__init__(self)
32
32
 
33
33
        parser = OptionParser(option_class=eng_option)
34
34
        parser.add_option("-I", "--audio-input", type="string", default="",
58
58
 
59
59
if __name__ == '__main__':
60
60
    try:
61
 
        my_graph().run()
 
61
        my_top_block().run()
62
62
    except KeyboardInterrupt:
63
63
        pass
64
64