SingleSelect

3 views
Skip to first unread message

Jurgens De Bruin

unread,
Jun 30, 2009, 10:16:53 AM6/30/09
to toscawidge...@googlegroups.com
Hi all

I have a singleselect in my form. The options for my singleselect are
obtained from a MySQL database. I would like to know if it would be
possible to have the singleselect default to a value.

For example:

if my options are ['A','B','C','D','No'] and this is obtained from the
MySQL database would it be possible to default to 'No'


Thanks all

Michael Brickenstein

unread,
Jul 3, 2009, 5:53:32 AM7/3/09
to ToscaWidgets-discuss
f=forms.SingleSelectField(options=[(1,"a"),(2,"b")], default=2)

Best regards,
Michael
Reply all
Reply to author
Forward
0 new messages