Version 6 of Simple Launch Pad

Updated 2005-05-18 08:59:45

Could somebody provide a beginners TCL/TK example please -- HJH

Launch pad for launching external programs or other TCL scripts

Variant 1) A row with three buttons. When a button is pressed a commandline string defined at the beginning of the program is executed.

The following script is incompete, but a start.

 frame .launchpad 
 button .launchpad.button1 -text "Data files" -command {exec command.com /c explorer "C:\\data" &}
 pack .launchpad.button1 -side top -fill x

 button .launchpad.button2 -text "notepad test.txt" -command {exec command.com /c notepad.exe myToDoList.txt &}
 pack .launchpad.button2 -side top -fill x

 button .launchpad.button3 -text "the third button"
 pack .launchpad.button3 -side top -fill x

 pack .launchpad -side top

 console hide

____ Note: To launch an external program the command

  exec myProg.exe arg1 arg2 &

is used.

Question1: How do I later assign an exec command to a button? How can I dynamically change the behaviour of buttons?

Question2: Which properties do I have to set that the buttons occupy the whole window width? -fill x is obviously not sufficient.

See also * DOS BAT magic * How to display the result of an external command in a widget