This is not something I have ever wanted, but it has been requested
plenty of times. Since wx makes this easy, this adds a super bare-
bones implementation that seems to work for me, which I think is
probably worthwhile. It doesn't handle multiple pages super elegantly,
and probably needs to have a "print selection" option, but it works.
Related to one of chirp's oldest bugs: #249
Data files outside the package are not installed in binary distributions, so move them inside. Use importlib_resources to load icon and stock configs.
- use only the newer files(), as_files() and namespace APIs introduced in Python 3.10
- use the importlib_resources package if Python < 3.10
- remove obviated pkg_path()
- bump minimum Python version to 3.7
Fix test paths to account for the move
This commit ensures that drivers that ask for bytes representations will always
get bytes or a bytes-compatible object, whether on Python 2 or 3.
python-future provides a mostly-complete implementation of bytes for Python 2.
#495
This adds a chirp.ui.compat module where we can pile things needed to
handle python3 differently. Right now there are a bunch of things that just fail
for reasons I don't fully grasp yet. Those go under a py3safe() decorator,
which logs and then ignores them.
Also, there is an issue with the sensitive=True bit on the columns for empty
memories. Need to figure that out.
#495