diff options
| author | Teddy Wing | 2015-11-19 17:41:12 -0500 |
|---|---|---|
| committer | Teddy Wing | 2015-11-19 17:41:12 -0500 |
| commit | 17caaf63409a38ea7450ef00a7f58d982d02c38b (patch) | |
| tree | a36822110180e1028479633023949dd4f85fd136 | |
| download | RoboFont-Equalize-Sidebearings-Key-17caaf63409a38ea7450ef00a7f58d982d02c38b.tar.bz2 | |
Initial commit. Placeholder RoboFont observer code.
Start with RoboFont's sample code for creating an observer. The goal is
to observe key presses in Space Center and equalise sidebearings when a
special key is pressed so that this functionality can be triggered from
the keyboard instead of needing to open the control-click contextual
menu and selecting it from the menu options.
| -rw-r--r-- | observer_test.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/observer_test.py b/observer_test.py new file mode 100644 index 0000000..26a963a --- /dev/null +++ b/observer_test.py @@ -0,0 +1,10 @@ +from mojo.events import addObserver + +class EqualizeSidebearings: + def __init__(self): + addObserver(self, 'center', 'spaceCenterKeyUp') + + def center(self, info): + print info + +EqualizeSidebearings()
\ No newline at end of file |
