forked from MarkAndBecky/websock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms.py
More file actions
12 lines (11 loc) · 761 Bytes
/
forms.py
File metadata and controls
12 lines (11 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
from wtforms import Form, BooleanField, StringField, FloatField,IntegerField,RadioField, validators
class PatternGeneratorForm(Form):
units = RadioField('Units', choices=(("inches", "inches") , ("cms", "cms")), default="inches")
stitches = FloatField('Gauge: stitches per 4in/10cm', default=36.0)
rows = FloatField('Gauge: rows per 4in/10cm', default=40.0)
circum = FloatField('Foot circumference', default=8.5)
foot_length = FloatField('Foot length', default=9.5)
include_gusset = BooleanField('Include gusset increases?', default=True)
instep = FloatField('Instep circumference', default=9.5)
ease = IntegerField('Ease (%)', default=-8)
divisible_by = IntegerField('Number of stitches in pattern repeat', default=1)