diff options
Diffstat (limited to 'grc/scripts/usrp_probe')
-rwxr-xr-x | grc/scripts/usrp_probe | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/grc/scripts/usrp_probe b/grc/scripts/usrp_probe index eab57677d..c92603482 100755 --- a/grc/scripts/usrp_probe +++ b/grc/scripts/usrp_probe @@ -109,9 +109,13 @@ If the USRP cannot be found, make sure that the USRP is plugged-in and restart t If the problem persists, there may be a problem with you gnuradio installation or USB 2.0. '''%str(e)) -#enter the mainloop -gtk.gdk.threads_init() -gtk.gdk.threads_enter() -USRPProbeWindow() -gtk.main() -gtk.gdk.threads_leave() +if __name__ == '__main__': + #setup icon using icon theme + try: gtk.window_set_default_icon(gtk.IconTheme().load_icon('gnuradio-grc', 256, 0)) + except: pass + #enter the mainloop + gtk.gdk.threads_init() + gtk.gdk.threads_enter() + USRPProbeWindow() + gtk.main() + gtk.gdk.threads_leave() |