commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10806 - gnuradio/branches/developers/trondeau/qtdevel


From: trondeau
Subject: [Commit-gnuradio] r10806 - gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/python
Date: Sun, 12 Apr 2009 08:40:51 -0600 (MDT)

Author: trondeau
Date: 2009-04-12 08:40:51 -0600 (Sun, 12 Apr 2009)
New Revision: 10806

Modified:
   
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/python/usrp_display.py
Log:
Set up the QApplication before setting up any calls to a Qt widget to allow 
full control.

Modified: 
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/python/usrp_display.py
===================================================================
--- 
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/python/usrp_display.py
  2009-04-12 01:11:57 UTC (rev 10805)
+++ 
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/python/usrp_display.py
  2009-04-12 14:40:51 UTC (rev 10806)
@@ -144,6 +144,8 @@
        self.options = options
         self.show_debug_info = True
 
+        # Call this before creating the Qt sink
+        self.qapp = QtGui.QApplication(sys.argv)
 
         self.u = usrp.source_c(which=options.which, decim_rate=options.decim)
         rx_subdev_spec = (0,0)
@@ -165,7 +167,6 @@
         amp = gr.multiply_const_cc(0.001)
         self.connect(self.u, amp, self.snk)
 
-        self.qapp = QtGui.QApplication(sys.argv)
         self.ctrl_win = control_panel(self.u, self.subdev)
 
         self.ctrl_win.set_frequency(options.freq)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]