Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

text_flipcase.py
import chardataeffect, inkex, string

00003 class C(chardataeffect.CharDataEffect):

  def process_chardata(self,text, line, par):
    r = ""
    for i in range(len(text)):
      c = text[i]
      if c.islower():
        r = r + c.upper()
      elif c.isupper():
        r = r + c.lower()
      else:
        r = r + c

    return r

c = C()
c.affect()

Generated by  Doxygen 1.6.0   Back to index