summaryrefslogtreecommitdiff
path: root/gr-qtgui/apps/plot_time_raster_form.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/apps/plot_time_raster_form.py')
-rw-r--r--gr-qtgui/apps/plot_time_raster_form.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/gr-qtgui/apps/plot_time_raster_form.py b/gr-qtgui/apps/plot_time_raster_form.py
index 32fbba0765..fd27d9574d 100644
--- a/gr-qtgui/apps/plot_time_raster_form.py
+++ b/gr-qtgui/apps/plot_time_raster_form.py
@@ -20,6 +20,9 @@
# Boston, MA 02110-1301, USA.
#
+from __future__ import print_function
+from __future__ import unicode_literals
+
import sys, math
from gnuradio import filter
@@ -27,7 +30,7 @@ try:
from PyQt4 import QtGui, QtCore
import sip
except ImportError:
- print "Error: Program requires PyQt4."
+ print("Error: Program requires PyQt4.")
sys.exit(1)
try:
@@ -81,7 +84,7 @@ class plot_time_raster_form(plot_form):
self._style_edit = []
self._marker_edit = []
self._alpha_edit = []
- for n in xrange(self.top_block._nsigs):
+ for n in range(self.top_block._nsigs):
self._line_pages.append(QtGui.QDialog())
self._line_forms.append(QtGui.QFormLayout(self._line_pages[-1]))
@@ -153,5 +156,3 @@ class plot_time_raster_form(plot_form):
nsamps = int(math.ceil(self.top_block._ncols*(n+1)))
self.top_block.reset(self._start, nsamps)
-
-