aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-12-24 11:46:36 -0800
committerTeddy Wing2015-12-24 11:46:36 -0800
commit13e58b1b5bd501458493c866004fe1cc9f5a8dbb (patch)
tree70413534654ff1d977a2321ed943d055007f6541
parent424a21e5831951c3d2196d2f593fd8dbcfc0f64d (diff)
downloadRoboFont-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.py10
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()