[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/01: qtgui: fixed examples using qss them
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/01: qtgui: fixed examples using qss theme. |
Date: |
Wed, 15 Apr 2015 19:01:04 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit a6e86acecbffbbbbdac9d2da8de018dd40164992
Author: Tom Rondeau <address@hidden>
Date: Tue Apr 14 19:57:05 2015 -0400
qtgui: fixed examples using qss theme.
Look at installation prefix/share/gnuradio/themes for the location of
the dark.qss, which was moved from being in the examples directory.
---
gr-qtgui/examples/pyqt_example_c.py | 3 +--
gr-qtgui/examples/pyqt_freq_c.py | 3 +--
gr-qtgui/examples/pyqt_time_c.py | 3 +--
gr-qtgui/examples/pyqt_waterfall_c.py | 3 +--
4 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/gr-qtgui/examples/pyqt_example_c.py
b/gr-qtgui/examples/pyqt_example_c.py
index cb70836..1bf61d9 100755
--- a/gr-qtgui/examples/pyqt_example_c.py
+++ b/gr-qtgui/examples/pyqt_example_c.py
@@ -151,7 +151,7 @@ class my_top_block(gr.top_block):
fftsize = 2048
self.qapp = QtGui.QApplication(sys.argv)
- ss = open('dark.qss')
+ ss = open(gr.prefix() + '/share/gnuradio/themes/dark.qss')
sstext = ss.read()
ss.close()
self.qapp.setStyleSheet(sstext)
@@ -190,4 +190,3 @@ if __name__ == "__main__":
tb.start()
tb.qapp.exec_()
tb.stop()
-
diff --git a/gr-qtgui/examples/pyqt_freq_c.py b/gr-qtgui/examples/pyqt_freq_c.py
index 7632176..c53feb9 100755
--- a/gr-qtgui/examples/pyqt_freq_c.py
+++ b/gr-qtgui/examples/pyqt_freq_c.py
@@ -151,7 +151,7 @@ class my_top_block(gr.top_block):
npts = 2048
self.qapp = QtGui.QApplication(sys.argv)
- ss = open('dark.qss')
+ ss = open(gr.prefix() + '/share/gnuradio/themes/dark.qss')
sstext = ss.read()
ss.close()
self.qapp.setStyleSheet(sstext)
@@ -191,4 +191,3 @@ if __name__ == "__main__":
tb.start()
tb.qapp.exec_()
tb.stop()
-
diff --git a/gr-qtgui/examples/pyqt_time_c.py b/gr-qtgui/examples/pyqt_time_c.py
index ae8ebfc..0162bb6 100755
--- a/gr-qtgui/examples/pyqt_time_c.py
+++ b/gr-qtgui/examples/pyqt_time_c.py
@@ -151,7 +151,7 @@ class my_top_block(gr.top_block):
npts = 2048
self.qapp = QtGui.QApplication(sys.argv)
- ss = open('dark.qss')
+ ss = open(gr.prefix() + '/share/gnuradio/themes/dark.qss')
sstext = ss.read()
ss.close()
self.qapp.setStyleSheet(sstext)
@@ -205,4 +205,3 @@ if __name__ == "__main__":
tb.start()
tb.qapp.exec_()
tb.stop()
-
diff --git a/gr-qtgui/examples/pyqt_waterfall_c.py
b/gr-qtgui/examples/pyqt_waterfall_c.py
index 118a3df..8ec62fc 100755
--- a/gr-qtgui/examples/pyqt_waterfall_c.py
+++ b/gr-qtgui/examples/pyqt_waterfall_c.py
@@ -153,7 +153,7 @@ class my_top_block(gr.top_block):
taps = filter.firdes.complex_band_pass_2(1, Rs, 1500, 2500, 100, 60)
self.qapp = QtGui.QApplication(sys.argv)
- ss = open('dark.qss')
+ ss = open(gr.prefix() + '/share/gnuradio/themes/dark.qss')
sstext = ss.read()
ss.close()
self.qapp.setStyleSheet(sstext)
@@ -193,4 +193,3 @@ if __name__ == "__main__":
tb.start()
tb.qapp.exec_()
tb.stop()
-