summaryrefslogtreecommitdiff
path: root/grc/python
diff options
context:
space:
mode:
authorJosh Blum2011-06-22 23:35:19 -0700
committerJosh Blum2011-06-22 23:35:19 -0700
commit9bf36359d2cab2cc36adee529429e6b693448154 (patch)
tree775d05f19589c8ece5224aae39a5f67b00cea9ac /grc/python
parent081497e75e89ab1343ee020013f5fd05275b6188 (diff)
downloadgnuradio-9bf36359d2cab2cc36adee529429e6b693448154.tar.gz
gnuradio-9bf36359d2cab2cc36adee529429e6b693448154.tar.bz2
gnuradio-9bf36359d2cab2cc36adee529429e6b693448154.zip
grc: qtgui windows have scrollbars (thanks jason)
Diffstat (limited to 'grc/python')
-rw-r--r--grc/python/flow_graph.tmpl11
1 files changed, 10 insertions, 1 deletions
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl
index d5e53b52b..0878be4ba 100644
--- a/grc/python/flow_graph.tmpl
+++ b/grc/python/flow_graph.tmpl
@@ -65,9 +65,18 @@ class $(class_name)(gr.top_block, Qt.QWidget):
Qt.QWidget.__init__(self)
self.setWindowTitle("$title")
self.setWindowIcon(Qt.QIcon.fromTheme('gnuradio-grc'))
- self.top_layout = Qt.QVBoxLayout(self)
+ self.top_scroll_layout = Qt.QVBoxLayout()
+ self.setLayout(self.top_scroll_layout)
+ self.top_scroll = Qt.QScrollArea()
+ self.top_scroll.setFrameStyle(Qt.QFrame.NoFrame)
+ self.top_scroll_layout.addWidget(self.top_scroll)
+ self.top_scroll.setWidgetResizable(True)
+ self.top_widget = Qt.QWidget()
+ self.top_scroll.setWidget(self.top_widget)
+ self.top_layout = Qt.QVBoxLayout(self.top_widget)
self.top_grid_layout = Qt.QGridLayout()
self.top_layout.addLayout(self.top_grid_layout)
+
#elif $generate_options == 'no_gui'
class $(class_name)(gr.top_block):