Created
December 6, 2018 02:30
-
-
Save mrf345/72c8f3938abf2bc2e085e123916044dc to your computer and use it in GitHub Desktop.
Modified form without translation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Touch_name(FlaskForm): | |
name = SelectField(coerce=str) | |
submit = SubmitField("Register") | |
def __init__(self, defLang='en', *args, **kwargs): | |
super(Touch_name, self).__init__(*args, **kwargs) | |
self.name.label = "Select one of the following options :" | |
self.name.choices = [ | |
("First option", "First option"), | |
("Second option", "Second option"), | |
("Third option", "Third option")] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment