Changeset 0b8c868


Ignore:
Timestamp:
Feb 25, 2009, 12:53:27 AM (15 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@…>

Location:
gutenbach-web
Files:
34 added
5 edited

Legend:

Unmodified
Added
Removed
  • gutenbach-web/index.html

    r4b9d354 r0b8c868  
    1414<body>
    1515    <div id="status">
    16         <p>The volume is <span class="volume">$volume</span></p>
    17         <div py:replace="volume_form"></div>
     16        <p>The volume is <span id="volume">$volume</span></p>
     17        <div py:replace="volume_form(volume_data)"></div>
    1818    </div>
    1919    <div class="clearingdiv" />
  • gutenbach-web/master.html

    r1998d46 r0b8c868  
    1111    <title py:replace="''">Your title goes here</title>
    1212    <meta py:replace="select('*')"/>
     13    <link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/jquery/theme/ui.all.css')}" />
    1314    <link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/style.css')}" />
    1415</head>
  • 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
  • gutenbach-web/style.css

    r1998d46 r0b8c868  
    9292
    9393/* Content CSS */
    94 .volume {
     94#volume {
    9595    color: #009;
    9696    font-family: Helvetica;
     
    9898    font-size: 1.1em;
    9999}
     100.labelcol {
     101    padding-right: 2em;
     102}
     103#volume_form_volume_container {
     104    width: 18em;
     105}
  • gutenbach-web/virtualenv-create

    r973dd91 r0b8c868  
    11#!/bin/bash
    22easy_install -i http://www.turbogears.org/2.0/downloads/current/index tg.devtools
     3# deal with bugs that happen during install
    34easy_install tg.devtools
    45easy_install tg.devtools
Note: See TracChangeset for help on using the changeset viewer.