Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > 222aed871fa304985edb6a49fddc6b77 > files > 12

python-cairo-devel-1.8.10-1.mga1.i586.rpm

# snippet list generation
import os

# list of snippet files
snip_list = [x[:-3] for x in os.listdir (os.path.dirname (__file__))
             if not x.startswith('_') and x.endswith('.py')]
snip_list.sort()

# function used by some or all snippets
def snippet_normalize (ctx, width, height):
    ctx.scale (width, height)
    ctx.set_line_width (0.04)