summaryrefslogtreecommitdiff
path: root/gr-qtgui/apps/plot_constellation_form.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/apps/plot_constellation_form.py')
-rw-r--r--gr-qtgui/apps/plot_constellation_form.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/gr-qtgui/apps/plot_constellation_form.py b/gr-qtgui/apps/plot_constellation_form.py
index 01c6ed1865..81cb76e233 100644
--- a/gr-qtgui/apps/plot_constellation_form.py
+++ b/gr-qtgui/apps/plot_constellation_form.py
@@ -20,6 +20,10 @@
# Boston, MA 02110-1301, USA.
#
+from __future__ import print_function
+from __future__ import division
+from __future__ import unicode_literals
+
import sys
from gnuradio import filter
@@ -27,7 +31,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:
@@ -48,8 +52,8 @@ class plot_constellation_form(plot_form):
# Set the bar to go from 0.001 to max
self.ybar.setMinimum(1)
self.ybar.setMaximum(self._pos_scale*self.top_block._y_max)
- self.ybar.setSingleStep(self._pos_scale*(max(self.top_block._y_range/10, 0.010)))
- self.ybar.setPageStep(self._pos_scale*(max(self.top_block._y_range/2, 0.010)))
+ self.ybar.setSingleStep(self._pos_scale*(max(self.top_block._y_range / 10, 0.010)))
+ self.ybar.setPageStep(self._pos_scale*(max(self.top_block._y_range / 2, 0.010)))
self.auto_scale = QtGui.QCheckBox("Auto Scale", self)
if(self.top_block._auto_scale):