PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Merkwürdiges GUI-Skript



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:

michael.sprick
14-07-2005, 00:00
#!/usr/bin/wish
das ist "wish" (windowing shell). Die Anweisungen sind afaik TCL Kommandos und für die Fenster wird TK benutzt...

nobody0
14-07-2005, 00:25
Aha, danke, aber wo gibt's Tutorials dazu? :confused:

panzi
15-07-2005, 01:04
zu TCL/TK siehe http://tcl.tk/ ;)