In the latest version of the GNU Radio master tree, there's a small
bug in the GRC GUI that breaks the file selection dialog. The error on
the terminal is this:

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/gnuradio/grc/python/Param.py",
line 68, in _handle_clicked
    self.entry.set_text(file_path)
AttributeError: 'FileParam' object has no attribute 'entry'

It can easily be fixed by replacing 'entry' with '_input' in
grc/python/Param.py, line 68. Patch attached.

Dimitris Symeonidis
"If you think you're too small to make a difference, try sleeping with
a mosquito!" - Amnesty International
diff --git a/grc/python/Param.py b/grc/python/Param.py
index febb112..e04bc8f 100644
--- a/grc/python/Param.py
+++ b/grc/python/Param.py
@@ -65,7 +65,7 @@ class FileParam(EntryParam):
 		file_dialog.set_local_only(True)
 		if gtk.RESPONSE_OK == file_dialog.run(): #run the dialog
 			file_path = file_dialog.get_filename() #get the file path
-			self.entry.set_text(file_path)
+			self._input.set_text(file_path)
 			self._handle_changed()
 		file_dialog.destroy() #destroy the dialog
 
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to