diff options
Diffstat (limited to 'ep_modifier_mask.py')
-rw-r--r-- | ep_modifier_mask.py | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/ep_modifier_mask.py b/ep_modifier_mask.py index 439206b..70c0d43 100644 --- a/ep_modifier_mask.py +++ b/ep_modifier_mask.py @@ -1,5 +1,5 @@ # coding: UTF-8 -# Copyright 2009 Thomas Jourdan +# Copyright 2009, 2010 Thomas Jourdan # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -123,17 +123,14 @@ class MaskModifier(model_allele.Allele): single_treenode.render(task, ctx, width, height) ctx.restore() - def explain(self): - """ - post: len(__return__) == 3 - """ - return u'Mask modifier, center=' + self.center.explain() \ - + u' direction=' + self.direction.explain() \ - + u' alpha1=' + unicode(self.alpha1) \ - + u' alpha2=' + unicode(self.alpha2), \ - None, \ - None - + def explain(self, task, formater, single_layer, single_treenode): + formater.text_item(_('Mask modifier, center=') + self.center.explain() \ + + _(' direction=') + self.direction.explain() + + _(' alpha1=') + unicode(self.alpha1) + + _(' alpha2=') + unicode(self.alpha2)) + single_layer.explain(formater) + single_treenode.explain(task, formater) + def copy(self): """A copy constructor. post: isinstance(__return__, MaskModifier) |