[chirp_devel] Display Value but Don't Allow Editing
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
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?
Not right now, but I just sent a patch to add something to let you do this. Let me know if it works and I'll commit it.
participants (2)
-
Dan Smith
-
Jim Unroe