suppress freq entry in baseband mode

git-svn-id: http://op25.osmocom.org/svn/trunk@287 65a5c917-d112-43f1-993d-58c26a4786be
This commit is contained in:
max 2011-06-02 20:08:09 +00:00
parent fa9bb8035c
commit e6c7400479
1 changed files with 5 additions and 4 deletions

View File

@ -510,10 +510,11 @@ class p25_rx_block (stdgui2.std_top_block):
self.myform = myform = form.form()
hbox = wx.BoxSizer(wx.HORIZONTAL)
myform['freq'] = form.float_field(
parent=self.panel, sizer=hbox, label="Frequency", weight=0,
callback=myform.check_input_and_call(_form_set_freq, self._set_status_msg))
myform['freq'].set_value(self.options.frequency)
if not self.baseband_input:
myform['freq'] = form.float_field(
parent=self.panel, sizer=hbox, label="Frequency", weight=0,
callback=myform.check_input_and_call(_form_set_freq, self._set_status_msg))
myform['freq'].set_value(self.options.frequency)
if self.baseband_input:
min_gain = 0
max_gain = 200