summaryrefslogtreecommitdiff
path: root/gr-wxgui/src/python
diff options
context:
space:
mode:
authorjblum2008-06-12 21:49:49 +0000
committerjblum2008-06-12 21:49:49 +0000
commit6051d8037f394e859a5980ef7ac37fa9db0cddac (patch)
tree9bdd57fb91f7af4840d4faa17f34106b8430678d /gr-wxgui/src/python
parentfbf6561921e39beb69caaca9f7012c17314530d7 (diff)
downloadgnuradio-6051d8037f394e859a5980ef7ac37fa9db0cddac.tar.gz
gnuradio-6051d8037f394e859a5980ef7ac37fa9db0cddac.tar.bz2
gnuradio-6051d8037f394e859a5980ef7ac37fa9db0cddac.zip
fftsink: stretch spacer for better fit
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8586 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-wxgui/src/python')
-rwxr-xr-xgr-wxgui/src/python/fftsink2.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/gr-wxgui/src/python/fftsink2.py b/gr-wxgui/src/python/fftsink2.py
index 423097674..f4e9143f1 100755
--- a/gr-wxgui/src/python/fftsink2.py
+++ b/gr-wxgui/src/python/fftsink2.py
@@ -238,7 +238,7 @@ class control_panel(wx.Panel):
control_box = wx.BoxSizer(wx.VERTICAL)
#checkboxes for average and peak hold
- control_box.AddSpacer(2)
+ control_box.AddStretchSpacer()
control_box.Add(self.LabelText(self, 'Options'), 0, wx.ALIGN_CENTER)
self.average_check_box = wx.CheckBox(parent=self, style=wx.CHK_2STATE, label="Average")
self.average_check_box.Bind(wx.EVT_CHECKBOX, parent.on_average)
@@ -248,7 +248,7 @@ class control_panel(wx.Panel):
control_box.Add(self.peak_hold_check_box, 0, wx.EXPAND)
#radio buttons for div size
- control_box.AddSpacer(2)
+ control_box.AddStretchSpacer()
control_box.Add(self.LabelText(self, 'Set dB/div'), 0, wx.ALIGN_CENTER)
radio_box = wx.BoxSizer(wx.VERTICAL)
self.radio_buttons = list()
@@ -260,9 +260,9 @@ class control_panel(wx.Panel):
control_box.Add(radio_box, 0, wx.EXPAND)
#ref lvl buttons
- control_box.AddSpacer(2)
+ control_box.AddStretchSpacer()
control_box.Add(self.LabelText(self, 'Adj Ref Lvl'), 0, wx.ALIGN_CENTER)
- control_box.AddSpacer(1)
+ control_box.AddSpacer(2)
button_box = wx.BoxSizer(wx.HORIZONTAL)
self.ref_plus_button = wx.Button(self, -1, '+', style=wx.BU_EXACTFIT)
self.ref_plus_button.Bind(wx.EVT_BUTTON, parent.on_incr_ref_level)
@@ -271,6 +271,7 @@ class control_panel(wx.Panel):
self.ref_minus_button.Bind(wx.EVT_BUTTON, parent.on_decr_ref_level)
button_box.Add(self.ref_minus_button, 0, wx.ALIGN_CENTER)
control_box.Add(button_box, 0, wx.ALIGN_CENTER)
+ control_box.AddStretchSpacer()
#set sizer
self.SetSizerAndFit(control_box)
#update