~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to share/extensions/interp_att_g.py

  • Committer: JazzyNico
  • Date: 2011-08-29 20:25:30 UTC
  • Revision ID: nicoduf@yahoo.fr-20110829202530-6deuoz11q90usldv
Code refactoring and merging with trunk (revision 10599).

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
18
'''
19
19
import inkex, simplestyle, math, re, string
 
20
import gettext
 
21
_ = gettext.gettext
20
22
 
21
23
class InterpAttG(inkex.Effect):
22
24
 
29
31
        self.OptionParser.add_option("-o", "--att-other",
30
32
                        action="store", type="string",
31
33
                        dest="att_other",
32
 
                        help="Other atribute (for a limited UI).")
 
34
                        help="Other attribute (for a limited UI).")
33
35
        self.OptionParser.add_option("-t", "--att-other-type",
34
36
                        action="store", type="string",
35
37
                        dest="att_other_type",
50
52
                        action="store", type="string",
51
53
                        dest="unit", default="color",
52
54
                        help="Values unit.")
 
55
        self.OptionParser.add_option("--tab",
 
56
                        action="store", type="string",
 
57
                        dest="tab",
 
58
                        help="The selected UI-tab when OK was pressed")
53
59
 
54
60
    def getColorValues(self):
55
61
      sv = string.replace( self.options.start_val, '#', '' )
152
158
        self.getNumberValues()
153
159
 
154
160
      if self.collection is None:
155
 
        inkex.errormsg( 'There is no selection to interpolate' )
 
161
        inkex.errormsg( _('There is no selection to interpolate' ))
156
162
        return False
157
163
 
158
164
      for node in self.collection: