diff options
author | Tom Rondeau <tom@trondeau.com> | 2015-03-28 18:12:18 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2015-03-28 18:12:39 -0700 |
commit | 9f42087d73e0e9bb1046c31dac1750ace86aece5 (patch) | |
tree | 8a0b0fe4316932f948345278fd83cf34e8b2c3a1 | |
parent | 65ab4929dad317edd18208fbb6deb1e54e89eaf0 (diff) |
qtgui: fix broken QT tab widgets when trying to use more than five.
-rw-r--r-- | gr-qtgui/grc/qtgui_tab_widget.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-qtgui/grc/qtgui_tab_widget.xml b/gr-qtgui/grc/qtgui_tab_widget.xml index 5a99377367..1bbadc8e51 100644 --- a/gr-qtgui/grc/qtgui_tab_widget.xml +++ b/gr-qtgui/grc/qtgui_tab_widget.xml @@ -10,7 +10,10 @@ <import>from PyQt4 import Qt</import> <make>#set $win = 'self.%s'%$id Qt.QTabWidget() -#set $all_labels = [$label0, $label1, $label2, $label3, $label4][:int($num_tabs())] +#set $all_labels = [$label0, $label1, $label2, $label3, $label4, + $label5, $label6, $label7, $label8, $label9, + $label10, $label11, $label12, $label13, $label14, + $label15, $label16, $label17, $label18, $label19][:int($num_tabs())] #for i, label in enumerate($all_labels) self.$(id)_widget_$(i) = Qt.QWidget() self.$(id)_layout_$(i) = Qt.QBoxLayout(Qt.QBoxLayout.TopToBottom, self.$(id)_widget_$(i)) |