summaryrefslogtreecommitdiff
path: root/gr-qtgui/apps/pyqt_example_f.py
diff options
context:
space:
mode:
authorTom Rondeau2011-03-27 19:07:05 -0400
committerTom Rondeau2011-03-27 19:07:05 -0400
commitefc646ac1231f2381d860df92b2399cbd84f0ec9 (patch)
treeb86ce40ddd24bfdc45b05061f3e7db7d328225d1 /gr-qtgui/apps/pyqt_example_f.py
parent79fa80423ab962e550b57c1bde49673394d8e0db (diff)
downloadgnuradio-efc646ac1231f2381d860df92b2399cbd84f0ec9.tar.gz
gnuradio-efc646ac1231f2381d860df92b2399cbd84f0ec9.tar.bz2
gnuradio-efc646ac1231f2381d860df92b2399cbd84f0ec9.zip
gr-qtgui: improvements to python test apps.
Diffstat (limited to 'gr-qtgui/apps/pyqt_example_f.py')
-rwxr-xr-xgr-qtgui/apps/pyqt_example_f.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/gr-qtgui/apps/pyqt_example_f.py b/gr-qtgui/apps/pyqt_example_f.py
index ed525ae63..55d987329 100755
--- a/gr-qtgui/apps/pyqt_example_f.py
+++ b/gr-qtgui/apps/pyqt_example_f.py
@@ -28,11 +28,13 @@ class control_box(QtGui.QWidget):
# Control the first signal
self.freq1Edit = QtGui.QLineEdit(self)
+ self.freq1Edit.setMinimumWidth(100)
self.layout.addRow("Signal 1 Frequency:", self.freq1Edit)
self.connect(self.freq1Edit, QtCore.SIGNAL("editingFinished()"),
self.freq1EditText)
self.amp1Edit = QtGui.QLineEdit(self)
+ self.amp1Edit.setMinimumWidth(100)
self.layout.addRow("Signal 1 Amplitude:", self.amp1Edit)
self.connect(self.amp1Edit, QtCore.SIGNAL("editingFinished()"),
self.amp1EditText)
@@ -40,17 +42,20 @@ class control_box(QtGui.QWidget):
# Control the second signal
self.freq2Edit = QtGui.QLineEdit(self)
+ self.freq2Edit.setMinimumWidth(100)
self.layout.addRow("Signal 2 Frequency:", self.freq2Edit)
self.connect(self.freq2Edit, QtCore.SIGNAL("editingFinished()"),
self.freq2EditText)
self.amp2Edit = QtGui.QLineEdit(self)
+ self.amp2Edit.setMinimumWidth(100)
self.layout.addRow("Signal 2 Amplitude:", self.amp2Edit)
self.connect(self.amp2Edit, QtCore.SIGNAL("editingFinished()"),
self.amp2EditText)
self.quit = QtGui.QPushButton('Close', self)
+ self.quit.setMinimumWidth(100)
self.layout.addWidget(self.quit)
self.connect(self.quit, QtCore.SIGNAL('clicked()'),
@@ -139,5 +144,5 @@ class my_top_block(gr.top_block):
if __name__ == "__main__":
tb = my_top_block();
tb.start()
- tb.qapp.exec_()
+ sys.exit(tb.qapp.exec_())