[chirp_devel] RadioSettings when used within mem.extra
Kosta Arvanitis
Wed Jul 28 15:30:24 PDT 2021
Memory extra settings currently only appears to
support RadioSettingValueBoolean and RadioSettingValueList; the behaviour
when any other type is provided is to simply ignore it. It probably
wouldn't be difficult to add support for additional types such
as RadioSettingValueInteger given that the IntChoiceEditor is already
defined (although never instantiated). I have no context as to the history
as to why this is the case, but should be easy to implement and test.
https://chirp.danplanet.com/projects/chirp/repository/entry/chirp/ui/memdetail.py#L272
On Wed, Jul 28, 2021 at 3:06 PM Jim Unroe via chirp_devel <
chirp_devel at intrepid.danplanet.com> wrote:
> Group,
>
> For some reason, I cannot get RadioSettingValueInteger() to work for
> setting values in a "mem.extra" RadioSettingsGroup(). When I use it
> here (the same as I would in "_get_settings(self)", I get no errors
> but the setting does not display in the CHIRP Memory Properties
> Editor.
>
> Only one driver currently attempts to use RadioSettingValueInteger()
> this way (tk760G.py). But like I am experiencing, the settings (there
> are 2: "Bank it belongs" and "Ch number in the bank") are not visible
> in the CHIRP Memory Properties Editor.
>
> I have no problems using RadioSettingValueBoolean() or
> RadioSettingValueList() for providing settings in the "mem.extra"
> RadioSettingsGroup() (even tricky ones where the Boolean values are
> inverted).
>
> So for years I have just been creating a list of integers and using
> RadioSettingValueList() to get around this issue (and apparently
> everyone else, except one, has been too).
>
> What I am trying to find out is; is this a CHIRP bug, or, am I doing
> something wrong, or, am I not doing something that needs to be done
> differently for the "mem.extra" RadioSettingsGroup()? Do any of you
> have any ideas about this?
>
> Thanks,
> Jim KC9HI
> _______________________________________________
> chirp_devel mailing list
> chirp_devel at intrepid.danplanet.com
> http://intrepid.danplanet.com/mailman/listinfo/chirp_devel
> Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20210728/f1b4437b/attachment-0001.html
More information about the chirp_devel
mailing list