[twill] Setting ListControls by Value

sureshvv suresh_vv at yahoo.com
Mon Nov 28 21:34:03 PST 2005


Titus Brown wrote:

> 
> Hi, Suresh,
> 
> could you give me an example case where you need to do this?

If you had a dropdown as follows:

<select name="city">
     <option value="1">Los Angeles</option>
     <option value="2">San Francisco</option>
</select>

and you want to say:

     br['city'] = 'Los Angeles'

instead of

     br['city'] = 1

Suresh





More information about the twill mailing list