pankajpanjwani
Technical User
Hi,
I am trying to write a code in tcl which should be able to open a wish window, depending on the command line option provided to that tcl script.
Here is what I am trying to do .
file : test.tcl
set cm_argv [lindex $argv 0]
switch -exact -- $cm_argv {
-a {
tcl code ....
......
......
}
-ag {
I would like to start wish here
}
}
One way of doing this, what I know, is to write another code of pure wish syntax and get that executed here.
Can anybody suggest me an alternative.
thanks
-Pankaj
I am trying to write a code in tcl which should be able to open a wish window, depending on the command line option provided to that tcl script.
Here is what I am trying to do .
file : test.tcl
set cm_argv [lindex $argv 0]
switch -exact -- $cm_argv {
-a {
tcl code ....
......
......
}
-ag {
I would like to start wish here
}
}
One way of doing this, what I know, is to write another code of pure wish syntax and get that executed here.
Can anybody suggest me an alternative.
thanks
-Pankaj