inkstitch/bin/gen-format-list

20 wiersze
572 B
Plaintext
Czysty Zwykły widok Historia

#!/usr/bin/env python
import sys
sys.path.append('embroidermodder/experimental/python/binding')
from libembroidery import *
formatList = embFormatList_create()
curFormat = formatList
while(curFormat):
extension = embFormat_extension(curFormat)
description = embFormat_description(curFormat)
writerState = embFormat_writerState(curFormat)
if writerState.strip() and embFormat_type(curFormat) != EMBFORMAT_OBJECTONLY:
print '<_option value="%s">%s(%s)</_option>' % (extension[1:], description, extension.upper())
curFormat = curFormat.next