diff options
author | Josh Blum | 2011-03-07 23:52:40 -0800 |
---|---|---|
committer | Josh Blum | 2011-03-07 23:52:40 -0800 |
commit | c86acebd1ab6adf994f49dab1669fcbbb6324637 (patch) | |
tree | 346b3a49b0da7630c983987bed91f56ef1428496 /grc/python | |
parent | 9121b75d68a0c90deee814edffe387480b52019b (diff) | |
download | gnuradio-c86acebd1ab6adf994f49dab1669fcbbb6324637.tar.gz gnuradio-c86acebd1ab6adf994f49dab1669fcbbb6324637.tar.bz2 gnuradio-c86acebd1ab6adf994f49dab1669fcbbb6324637.zip |
qtgui-grc: added suport in main template for theme icon
Diffstat (limited to 'grc/python')
-rw-r--r-- | grc/python/flow_graph.tmpl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl index 1aea58838..5aaa99793 100644 --- a/grc/python/flow_graph.tmpl +++ b/grc/python/flow_graph.tmpl @@ -63,6 +63,8 @@ class $(class_name)(gr.top_block, Qt.QWidget): def __init__($param_str): gr.top_block.__init__(self, "$title") Qt.QWidget.__init__(self) + self.setWindowTitle("$title") + self.setWindowIcon(Qt.QIcon.fromTheme('gnuradio-grc')) self.top_layout = Qt.QVBoxLayout(self) self.top_grid_layout = Qt.QGridLayout() self.top_layout.addLayout(self.top_grid_layout) @@ -235,7 +237,6 @@ if __name__ == '__main__': #elif $generate_options == 'qt_gui' qapp = Qt.QApplication(sys.argv) tb = $(class_name)($(', '.join($params_eq_list))) - tb.setWindowTitle("$title") #if $flow_graph.get_option('run') tb.start() #end if |