示例#1
0
文件: chip.py 项目: kt3k/cilib
 def __init__(self, source='', file=''):
     if source and file:
         raise ValueError('ambiguous call')
     elif file:
         self.lamone = ulist(parse(open(file)))
     else:
         self.lamone = ulist(parse(source))
示例#2
0
文件: chip.py 项目: kt3k/cilib
frog_input = parse("""
- label: name
  input:
    name: name
    size: 10
    class: t
    id: name
- label: color
  input:
    name: color
    size: 10
    class: t
    id: color
- label: line
  input:
    name: line
    size: 10
    class: t
    id: line
- label: comment
  input:
    name: comment
    size: 40
  newline: 1
- label: comment
  textarea:
    name: comment
    cols: 60
    rows: 4
  newline: 1
""")