<p dir="ltr">Hi Jim,<br>
let me suggest to look also at ft857 driver where I override some of the properties and methods of its base class ft817.</p>
<p dir="ltr">73 de IZ3GME Marco</p>
<div class="gmail_quote">Il 06/mag/2015 03:34, "Jim Unroe" <<a href="mailto:rock.unroe@gmail.com">rock.unroe@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Do you get what is going on with subclasses overriding things from the<br>
> base class?<br>
<br>
Not 100%<br>
<br>
> If things are mostly the same but in different places, you<br>
> might be able to have a single get_memory() on the base class, and just<br>
> have the subclasses use different MEM_FORMAT strings to describe where<br>
> things are.<br>
<br>
I think I get this.<br>
<br>
> For anything that needs to be different, just break that out<br>
> into a helper method so that you can override that piece of behavior in<br>
> a subclass.<br>
<br>
This is where I think I have trouble. Although I have seen it<br>
discussed, the concept of "helper method" is not clear to me yet.<br>
<br>
I am studying what David just submitted for the TYT TH9000 radios. I<br>
think I can learn from that. And looking at kenwood_live.py in<br>
addition to the wouxun.py might also help with my understanding.<br>
<br>
Jim<br>
_______________________________________________<br>
chirp_devel mailing list<br>
<a href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>
Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br>
</blockquote></div>