Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add-on gestures: convert gestures map into script decorator functions #73

Open
josephsl opened this issue Jul 16, 2020 · 3 comments
Open

Comments

@josephsl
Copy link
Contributor

Hi,

Continuing code refactoring, this time code modernization:

In 2018, scriptHandler.script decorator was introduced, allowing add-on developers to specify gestures, input help messages, and categories for a script in one place. In case of Braille Extender add-on, using script decorator modernizes the add-on. It also has another benefit: it removes use of OrderedDict when defining gestures, as Python 3.7 guarantees insertion order for dictionaries (this may involve either removing gestures map or rearranging methods in the global plugin class to preserve original gestures map order).

Thanks.

@josephsl
Copy link
Contributor Author

Hi,

Optionally, I may need to fix grammar issues found in input help messages for some scripts, but I won't do it as it will cause problems for translators in the short term.

Thanks.

@zstanecic
Copy link
Collaborator

zstanecic commented Jul 16, 2020 via email

@josephsl
Copy link
Contributor Author

josephsl commented Jul 16, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants