PMG News Items Below

07/12/2007: A new package gWidgetstcltk is uploaded to CRAN

This package incorporates tcltk into the gWidgets framework. Although not all the widgets are implemented, due to a desire to make this work with the base tcltk libraries, many are.

The major difference between this implementation and gWidgetsRGtk2 and gWidgetsrJava is how containers are handled. In the latter two, a container can be specified for a widget after the widget is constructed, in gWidgetstcltk the container must be specified when a widget is constructed. So instead of using something like:

b = gbutton("click me")
g = ggroup(cont=gwindow("example"))
add(g, b, expand=TRUE)
you would write
g = ggroup(cont=gwindow("example"))
b = gbutton("click me", container=g, expand=TRUE)
The expand=TRUE is there to show that argumentst to add may be passed into the widget using the ... feature of R.