aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-12-24 11:54:37 -0800
committerTeddy Wing2015-12-24 11:54:37 -0800
commitcaba4fd1713abc46b9d443d313ea53714e43637d (patch)
tree3829017328668ad9fcdec83543a65fbfaf0b97d8
parent13e58b1b5bd501458493c866004fe1cc9f5a8dbb (diff)
downloadRoboFont-Equalize-Sidebearings-Key-caba4fd1713abc46b9d443d313ea53714e43637d.tar.bz2
preferences.py: Style window and controls
* Make the window a bit smaller because there's only one control * Add a text label to the editable input * Set a size for the editable input and move it into position to the right of the text label
-rw-r--r--preferences.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/preferences.py b/preferences.py
index aebd776..d770ab0 100644
--- a/preferences.py
+++ b/preferences.py
@@ -3,8 +3,9 @@ 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 = vanilla.Window((150, 50), 'Equalize Sidebearings')
+ self.w.activation_key_label = vanilla.TextBox((10, 15, -10, 22), 'Short Key:')
+ self.w.activation_key = vanilla.EditText((82, 12, -10, 25), 'e')
self.w.open()
EqualizeSidebearingsPreferences()