The newest version of Gnocl can be found at http://www.dr-baum.net/gnocl/.
Please send feedback, suggestions, bug reports to
<peter@dr-baum.net>
.
The mandatory "Hello World" example looks like this:
package require Gnocl set but [gnocl::button -text "Hello World" -onClicked {puts "Hello World"}] gnocl::window -title "Hello World Example" -child $but gnocl::mainLoop |
A more complete example which produces a GUI like the following, is explained in more detail.
The string that follows the onClicked option is executed whenever the menu is clicked or its accelerator pressed.