File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+ #
4
+ # Copyright 2016 Free Software Foundation, Inc.
5
+ #
6
+ # This file is part of GNU Radio
7
+ #
8
+ # GNU Radio is free software; you can redistribute it and/or modify
9
+ # it under the terms of the GNU General Public License as published by
10
+ # the Free Software Foundation; either version 3, or (at your option)
11
+ # any later version.
12
+ #
13
+ # GNU Radio is distributed in the hope that it will be useful,
14
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ # GNU General Public License for more details.
17
+ #
18
+ # You should have received a copy of the GNU General Public License
19
+ # along with GNU Radio; see the file COPYING. If not, write to
20
+ # the Free Software Foundation, Inc., 51 Franklin Street,
21
+ # Boston, MA 02110-1301, USA.
22
+ #
23
+
24
+ from PyQt4 import Qt , QtCore , QtGui
25
+ from gnuradio import gr
26
+
27
+ def check_set_qss ():
28
+ app = QtGui .qApp
29
+ qssfile = gr .prefs ().get_string ("qtgui" ,"qss" ,"" )
30
+ if (len (qssfile )> 0 ):
31
+ try :
32
+ app .setStyleSheet (open (qssfile ).read ())
33
+ except :
34
+ print "WARNING: bad QSS file, %s" % (qssfile )
35
+
You can’t perform that action at this time.
0 commit comments