nobody0
13-07-2005, 23:43
Ich habe zu einem Programm-Beispiel ein Skript von www.isd.mel.nist.gov/projects/rtlinux/rtutorial/ex08_rcservo/gui , das ein Fenster mit zwei Schiebebalken macht:
#!/usr/bin/wish
if {[lsearch $argv "--test"] != -1} {exit 0}
proc putit {a b} {
puts stdout "$a $b"
}
scale .scale0 -length 100 -from -1000 -to 1000 -variable speed0 -orient horizontal -showvalue 1 -command {putit 0}
scale .scale1 -length 100 -from -1000 -to 1000 -variable speed1 -orient horizontal -showvalue 1 -command {putit 1}
button .quit -text Quit -command exit
pack .scale0 .scale1 .quit
und es funktioniert, aber was für ein Skript ist das (GTK/JAVA/...)? :confused:
#!/usr/bin/wish
if {[lsearch $argv "--test"] != -1} {exit 0}
proc putit {a b} {
puts stdout "$a $b"
}
scale .scale0 -length 100 -from -1000 -to 1000 -variable speed0 -orient horizontal -showvalue 1 -command {putit 0}
scale .scale1 -length 100 -from -1000 -to 1000 -variable speed1 -orient horizontal -showvalue 1 -command {putit 1}
button .quit -text Quit -command exit
pack .scale0 .scale1 .quit
und es funktioniert, aber was für ein Skript ist das (GTK/JAVA/...)? :confused: