[chirp_devel] Display Value but Don't Allow Editing
Jim Unroe
Sat May 4 13:40:19 PDT 2013
I have a need to display a value like this so the user can see the value. I
don't want the user to be able to edit the value though. Is this possible?
def _filter(name):
filtered = ""
for char in str(name):
if char in chirp_common.CHARSET_ASCII:
filtered += char
else:
filtered += " "
return filtered
_msg = self._memobj.firmware_msg
if self._my_version() >= 299:
rs = RadioSetting("firmware_msg.line1", "Firmware version(read
only)",
RadioSettingValueString(0, 7,
_filter(_msg.line1)))
other.append(rs)
else:
rs = RadioSetting("firmware_msg.line2", "Firmware version(read
only)",
RadioSettingValueString(0, 7,
_filter(_msg.line2)))
other.append(rs)
Jim KC9HI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20130504/64b514fe/attachment-0001.html
More information about the chirp_devel
mailing list