The annotated examples of RwxWidgets (http://www.omegahat.org/RwxWidgets/ExampleDocuments/) and the tcltk examples of James Wettenhall (http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/) were personally very instructive for writing gWidgetsRwxWidgets and gWidgetstcltk. In addition the demos of Michael Lawrence in the RGtk2 package proved very useful. The following collection of examples illustrating some basic uses of gWidgets aims to provide a similar resource. That is, some short practical examples that can easily be modified to begin writing GUIs. The vignette that accompanies the gWidgets package has some longer examples. If you find these instructive, and have ideas for other short examples, please pass that along.
These were tested primarily against RGtk2 (a few require version 0.0-24 or greater) and not the other toolkits. Their mileage may vary.
- R pdf html A button box showing spacing
- R pdf html Using gimage for displaying graphics
- R pdf html Laying out widgets in a grid
- R pdf html How to make a menubar and a toolbar
- R pdf html Several widgets that select from a vector
- R pdf html How to use a slider and a spinbutton to update a graphic
- R pdf html How to modify values in gdf, gtable
- R pdf html How to use gtable widgets to select values
- R pdf html How to use icons with gtable
- R pdf html Using gtree to show a nested list
- R pdf html Shows how to enable or disable a widget
- R pdf html Using a status bar to relay information
- R pdf html An example of the tag function
- R pdf html Working around scoping issues
- R pdf html Using the proto package with gWidgets
- R pdf html Using the proto package with gWidgets to create SPSS-like GUIs
- R pdf html How to get mouse-click information in ggraphics.

