diff options
author | Josh Morman <jmorman@gnuradio.org> | 2021-11-24 12:02:17 -0500 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-11-24 14:41:53 -0500 |
commit | 42e58f1ca211115e9a76922c36dfbf2b1ad39978 (patch) | |
tree | 2d3df32ae49c64d399be77ec5830a0c25ff31df9 /gr-audio/examples/python/dial_tone.py | |
parent | 2ede969ec5f3f6d361814403b7375db5f15ec14d (diff) |
audio: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'gr-audio/examples/python/dial_tone.py')
-rw-r--r-- | gr-audio/examples/python/dial_tone.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-audio/examples/python/dial_tone.py b/gr-audio/examples/python/dial_tone.py index a38221faca..b175f8964c 100644 --- a/gr-audio/examples/python/dial_tone.py +++ b/gr-audio/examples/python/dial_tone.py @@ -19,6 +19,7 @@ except ImportError: sys.stderr.write("Error: Program requires gr-analog.\n") sys.exit(1) + class my_top_block(gr.top_block): def __init__(self): @@ -26,9 +27,9 @@ class my_top_block(gr.top_block): parser = ArgumentParser() parser.add_argument("-O", "--audio-output", default="", - help="pcm output device name. E.g., hw:0,0 or /dev/dsp") + help="pcm output device name. E.g., hw:0,0 or /dev/dsp") parser.add_argument("-r", "--sample-rate", type=eng_float, default=48000, - help="set sample rate, default=%(default)s") + help="set sample rate, default=%(default)s") args = parser.parse_args() sample_rate = int(args.sample_rate) @@ -40,6 +41,7 @@ class my_top_block(gr.top_block): self.connect(src0, (dst, 0)) self.connect(src1, (dst, 1)) + if __name__ == '__main__': try: my_top_block().run() |