All,
I want to use a section of code something like this. This already works, but is there a better way to do it? What it need to do is allow the user to see and edit a VHF or UHF frequency within the allowable frequency range. It would be nice if it could be displayed and edited similar to a cell in the spreadsheet view.
_vfoa = self._memobj.vfoa.freqa rs = RadioSetting("vfoa.freqa", "VFO A Frequency", RadioSettingValueInteger(0, 9, _vfoa[0]), RadioSettingValueInteger(0, 9, _vfoa[1]), RadioSettingValueInteger(0, 9, _vfoa[2]), RadioSettingValueInteger(0, 9, _vfoa[3]), RadioSettingValueInteger(0, 9, _vfoa[4]), RadioSettingValueInteger(0, 9, _vfoa[5]), RadioSettingValueInteger(0, 9, _vfoa[6]), RadioSettingValueInteger(0, 9, _vfoa[7])) workmode.append(rs)
I also want to limit '_vfoa[0]' to a list of 1, 4 and 5. Any suggestions on how to do that?
Also, I would want to set another variable, lets call it 'vfoaband', to 0 [meaning VHF] if '_vfoa[0]' = 0 and 1 [meaning UHF] if '_vfoa[0]' = 4 or 5.
Thanks in advance, Jim Unroe