From 13e58b1b5bd501458493c866004fe1cc9f5a8dbb Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 24 Dec 2015 11:46:36 -0800 Subject: 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. --- preferences.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 preferences.py (limited to 'preferences.py') 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() -- cgit v1.2.3