diff options
| author | Teddy Wing | 2015-12-24 11:46:36 -0800 |
|---|---|---|
| committer | Teddy Wing | 2015-12-24 11:46:36 -0800 |
| commit | 13e58b1b5bd501458493c866004fe1cc9f5a8dbb (patch) | |
| tree | 70413534654ff1d977a2321ed943d055007f6541 | |
| parent | 424a21e5831951c3d2196d2f593fd8dbcfc0f64d (diff) | |
| download | RoboFont-Equalize-Sidebearings-Key-13e58b1b5bd501458493c866004fe1cc9f5a8dbb.tar.bz2 | |
Add preferences.py
Create a file for the extension's preferences window. This will be a
window that opens when a menu item under the extension's menu is
selected.
The window will display an editable control to allow users to set a
custom key to trigger sidebar equalisation.
| -rw-r--r-- | preferences.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/preferences.py b/preferences.py new file mode 100644 index 0000000..aebd776 --- /dev/null +++ b/preferences.py @@ -0,0 +1,10 @@ +import vanilla + +class EqualizeSidebearingsPreferences(object): + + def __init__(self): + self.w = vanilla.Window((200, 70), 'Equalize Sidebearings') + self.w.activation_key = vanilla.EditText((0, 0, 0, 0), 'e') + self.w.open() + +EqualizeSidebearingsPreferences() |
