source: trunk/examples/video/dialdemo.tcl @ 1926

Last change on this file since 1926 was 1926, checked in by dkearney, 14 years ago

typo in videodial, adding demo for video dial code

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1#!/usr/bin/env sh
2#\
3exec wish "$0" $*
4
5package require RapptureGUI
6
7set w 0
8set t 0
9set min 0
10set max 7800
11
12frame .f
13pack .f -expand yes -fill both
14
15Rappture::Flowdial .f.d1 \
16    -length 10 \
17    -valuewidth 0 \
18    -valuepadding 0 \
19    -padding 6 \
20    -linecolor "" \
21    -activelinecolor "" \
22    -min $min \
23    -max $max \
24    -variable w \
25    -knobimage [Rappture::icon knob2] \
26    -knobposition center@middle
27
28Rappture::Videodial .f.d3 \
29    -length 10 \
30    -valuewidth 0 \
31    -valuepadding 0 \
32    -padding 6 \
33    -linecolor "" \
34    -activelinecolor "red" \
35    -min $min\
36    -max $max \
37    -knobimage "" \
38    -knobposition ne@bottom
39
40#pack .f.d1 -expand yes -fill both
41pack .f.d3 -expand yes -fill both
42
43after 200 {
44    update idletasks
45#    .f.d3 mark start 5
46#    .f.d3 mark end 10
47#    .f.d3 mark particle0 17
48#    .f.d3 mark particle1 10
49#    .f.d3 mark particle2 4
50#    .f.d3 mark particle3 54
51#    .f.d3 mark particle2 33
52#    .f.d3 mark arrow 17
53    .f.d3 bball
54}
55
56
57set t 6000
58#after idle play
59proc play {} {
60    global t min max
61    if {($t+1) < 7000} {
62        incr t
63        .f.d3 current $t
64        after 8 play
65    }
66}
Note: See TracBrowser for help on using the repository browser.