interp_att_g.py revision b6d0134d7b031d425c80e0fb696fb96173e00613
'''
Copyright (C) 2009 Aurelio A. Heckert, aurium (a) gmail dot com
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
'''
help="Attribute to be interpolated.")
dest="att_other",
help="Other attribute (for a limited UI).")
dest="att_other_type",
help="The other attribute type.")
dest="att_other_where",
help="That is a tag attribute or a style attribute?")
help="Initial interpolation value.")
help="End interpolation value.")
help="Values unit.")
def getColorValues(self):
# There are separators. That must be a integer RGB color definition.
else:
# There is no separator. That must be a Hex RGB color definition.
else: #the len must be 6
def getNumberValues(self):
def getTotElements(self):
self.collection = None
return False
# multiple selection
path = '//*[@id="%s"]' % i
else:
# must be a group
for i in self.collection:
else:
else:
if self.collection is None:
return False
val = 'rgb('+ \
else:
else: # inte_att_type == 'int'
else:
if t == None: t = ""
else:
else: # self.where == 'tag':
else:
return True
e = InterpAttG()
if e.affect():
exit(0)
else:
exit(1)