Guest User

Untitled

a guest
Apr 4th, 2017
185
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class SearchForm(FlaskForm):
  2. def __init__(self, *args, **kwargs):
  3. FlaskForm.__init__(self, *args, **kwargs)
  4. self.make_form()
  5.  
  6. def make_form(self):
  7. f = wtforms.TextField()
  8. f.label = 'mylabel'
  9. f.bind(self, 'myname')
RAW Paste Data