Bristol-Braille / canute-ui

User interface for the Canute electronic Braille reader.
http://bristolbraille.co.uk
GNU General Public License v3.0
36 stars 6 forks source link

Run upgrade from system menu and signal handling #307

Closed woodcoder closed 4 months ago

woodcoder commented 4 months ago

This PR adds the ability to check for, and initiate, an upgrade from the system menu.

In addition, this PR changes the UI to respond to the following OS signals:

The general menu button definitions, and view rendering, has been refactored into a more modular, configurable form by standardising the buttons.py and view.py API so these modules can be dynamically imported from subpackages.

Finally, the long press is made a little more predictable by waiting slightly longer before it repeats the event. This means it's easier to create a single long press event, allowing more predictable navigation through books.