From 424a21e5831951c3d2196d2f593fd8dbcfc0f64d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 23 Dec 2015 15:09:25 -0800 Subject: equalize_sidebearings.py: Rename `center` method to `equalize` Because the term is not exactly appropriate in this context. Equalising and centering are really 2 different things and this method does the former. --- equalize_sidebearings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/equalize_sidebearings.py b/equalize_sidebearings.py index 8460ad3..abfea41 100644 --- a/equalize_sidebearings.py +++ b/equalize_sidebearings.py @@ -13,9 +13,9 @@ class CustomSpaceCenterMenuForGlyph(SpaceCenterMenuForGlyph): class EqualizeSidebearings(object): def __init__(self): - addObserver(self, 'center', 'spaceCenterKeyUp') + addObserver(self, 'equalize', 'spaceCenterKeyUp') - def center(self, info): + def equalize(self, info): if info['event'].characters() == 'a': space_center_menu = CustomSpaceCenterMenuForGlyph( info['glyph'].naked()) -- cgit v1.2.3