Ignore:
Timestamp:
Feb 25, 2009, 12:53:27 AM (16 years ago)
Author:
Edward Z. Yang <edwardzyang@…>
Branches:
master, debian, mac, no-cups, web
Children:
8bcbc70e
Parents:
4b9d354
git-author:
Edward Z. Yang <edwardzyang@…> (02/25/09 00:53:27)
git-committer:
Edward Z. Yang <edwardzyang@…> (02/25/09 00:53:27)
Message:

Implement nice slider for volume.

Signed-off-by: Edward Z. Yang <edwardzyang@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gutenbach-web/root.py

    r4b9d354 r0b8c868  
    1212from remctl import remctl
    1313import tw.forms as twf
     14from sipbmp3web.widgets.slider import UISlider
    1415
    1516volume_form = twf.TableForm('volume_form', action='volume', children=[
    16     twf.TextField('volume', validator=twf.validators.Int(not_empty=True,min=1,max=31))
     17    UISlider('volume', min=1, max=31, validator=twf.validators.NotEmpty())
    1718])
    1819
     
    3132                    page="index",
    3233                    volume=volume,
    33                     volume_form=volume_form(kw),
     34                    volume_form=volume_form,
     35                    volume_data=kw,
    3436                )
    3537
Note: See TracChangeset for help on using the changeset viewer.