diff options
author | Tom Rondeau | 2011-03-27 14:25:15 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-03-27 14:25:15 -0400 |
commit | 0726044c8c608826253d732512b56f0c88e0c55c (patch) | |
tree | b64e783eb5d776068df9bc9fd94a0d9e984dbf15 /gr-qtgui | |
parent | 9ebfa393e94a5614fccac987a7044bc66814af78 (diff) | |
download | gnuradio-0726044c8c608826253d732512b56f0c88e0c55c.tar.gz gnuradio-0726044c8c608826253d732512b56f0c88e0c55c.tar.bz2 gnuradio-0726044c8c608826253d732512b56f0c88e0c55c.zip |
gr-qtgui: making necessary changes to build a python package and export qtgui; also preserves old convention of 'from gnuradio.qtgui import qtgui'. Some of the examples have been updated to use the new (cleaner) convention.
Diffstat (limited to 'gr-qtgui')
-rwxr-xr-x | gr-qtgui/apps/pyqt_example_c.py (renamed from gr-qtgui/apps/pyqt_example.py) | 2 | ||||
-rwxr-xr-x | gr-qtgui/apps/pyqt_example_f.py | 2 | ||||
-rwxr-xr-x | gr-qtgui/apps/qt_digital.py | 2 | ||||
-rw-r--r-- | gr-qtgui/python/__init__.py | 25 |
4 files changed, 28 insertions, 3 deletions
diff --git a/gr-qtgui/apps/pyqt_example.py b/gr-qtgui/apps/pyqt_example_c.py index 7c0cfc698..e8f377846 100755 --- a/gr-qtgui/apps/pyqt_example.py +++ b/gr-qtgui/apps/pyqt_example_c.py @@ -1,7 +1,7 @@ #!/usr/bin/env python from gnuradio import gr -from gnuradio.qtgui import qtgui +from gnuradio import qtgui from PyQt4 import QtGui, QtCore import sys, sip diff --git a/gr-qtgui/apps/pyqt_example_f.py b/gr-qtgui/apps/pyqt_example_f.py index 4e36ccca5..ed525ae63 100755 --- a/gr-qtgui/apps/pyqt_example_f.py +++ b/gr-qtgui/apps/pyqt_example_f.py @@ -1,7 +1,7 @@ #!/usr/bin/env python from gnuradio import gr, blks2 -from gnuradio.qtgui import qtgui +from gnuradio import qtgui from PyQt4 import QtGui, QtCore import sys, sip diff --git a/gr-qtgui/apps/qt_digital.py b/gr-qtgui/apps/qt_digital.py index 679f144ef..7b9e9b773 100755 --- a/gr-qtgui/apps/qt_digital.py +++ b/gr-qtgui/apps/qt_digital.py @@ -1,7 +1,7 @@ #!/usr/bin/env python from gnuradio import gr, blks2 -from gnuradio.qtgui import qtgui +from gnuradio import qtgui from gnuradio import eng_notation from PyQt4 import QtGui, QtCore import sys, sip diff --git a/gr-qtgui/python/__init__.py b/gr-qtgui/python/__init__.py index e69de29bb..db113bbd3 100644 --- a/gr-qtgui/python/__init__.py +++ b/gr-qtgui/python/__init__.py @@ -0,0 +1,25 @@ +# +# Copyright 2011 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# GNU Radio is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GNU Radio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Radio; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, +# Boston, MA 02110-1301, USA. +# + +# The presence of this file turns this directory into a Python package + +from qtgui_swig import * +import qtgui_swig as qtgui # to preserve the old interface |