Questions tagged [gwidgets]

gWidgets provides a toolkit-independent API for building GUIs for the R programming language.

gWidgets is a set of packages for development. It provides a high-level wrapper over R packages that interface , and , providing a (more-or-less) toolkit-independent way of building GUIs.

Current packages start with the prefix gWidgets2, and older versions start with just gWidgets. V1 of gWidgets also has (now obsolete) interfaces to Java and HTML GUI tools.

Repositories

gWidgets2 gWidgets2RGtk2 gWidgets2tcltk gWidgetsqt gWidgets gWidgetsRGtk2 gWidgetstcltk

Vignettes

Books

Other resources

Related tags

  • 's and packages for creating web and Java GUIs respectively
215 questions
1
vote
1 answer

How do you give functionality to a gWidget and how to utilise the input by a user into 'gedit'?

`win <- gwindow(title = "Analysing PDB structures", visible=TRUE, name=title, width = NULL, height = NULL, parent=NULL) group <- ggroup(horizontal = FALSE, container=win) obj <- glabel("Type your PDB code here:", container = group) obj <-…
clauder1
  • 13
  • 3
1
vote
0 answers

How to customize background color of gtable rows in gWidgets (R)

Let's say I have a gtable in a gwindow like this: library(gWidgets) options("guiToolkit"="RGtk2") w <- gwindow() dat <- data.frame(letter=letters, number=1:length(letters)) tab <- gtable(dat, container=w) I'd like to be able to set the background…
ballparts
  • 11
  • 1
1
vote
0 answers

How to return values from a dynamic loop 'gedit' GUI in R/gwidgets2RGtk2?

I am currently writing a program where the user can give certain weightvalues to certain traits of animals, to assess their relevance. Because the number of traits is dynamic, i.e. users can enter a file with an X number of animals and a Y number of…
RvB
  • 11
  • 3
1
vote
1 answer

R & gwidgets2 - Collecting values from gRadio widget

My problem is very basic (I am a beginner user in R). I am trying to collect the value selected from a gradio widget (gwidgets2 package for R). I am using a similar script as this simplified one : U=vector(mode="character") DF=function()…
1
vote
1 answer

Read csv using gfilebrowse from gWidgets

I am trying to build a GUI using gWidgets R library to download satellite imagery. The intention is to read the urls from a comma separated values file. The GUI looks ok but it does not do what I expect it to do. I am doing something wrong, any help…
Shepherd
  • 438
  • 3
  • 10
1
vote
0 answers

R-gwidgets- warning message

I'm using the package gWidgetsRGtk2 to create a GUI that can manipulate a df. I never worked with this package before so I'm not an expert. When I try to make a window using gwindow everything works fine gwindow("test") guiWidget of type:…
michielned
  • 11
  • 1
1
vote
0 answers

R gWidgets embed a "rgl" 3D plot in gWidgets2 ggraphics device

Can I embed a "rgl" 3D plot in gWidgets2 ggraphics device? For example, library(gWidgets2) library(rgl) w <- gwindow("brushing example", visible=FALSE) g <- ggroup(cont=w) pg <- gnotebook(cont=g, expand=TRUE) dev1 <- ggraphics(cont=pg) visible(w)…
2607
  • 4,037
  • 13
  • 49
  • 64
1
vote
1 answer

Allowing gframe to grow with scrollbars inside window

I'd like to create a variable number of widgets inside a frame, based on data imported by the user, while keeping the frame from growing the window off the screen. If the frame becomes larger than the window or its container, I want it to show a…
bright-star
  • 6,016
  • 6
  • 42
  • 81
1
vote
0 answers

How to trigger the handler of a button using an `alt+letter` keybinding?

In various programs you can often activate a button using an alt+c key binding, if for example the button in question is Close. How is it possible to do this in gWidgets2? Take this example: w <- gwindow("Buttons") g <- ggroup(cont=w,…
landroni
  • 2,902
  • 1
  • 32
  • 39
1
vote
1 answer

Displaying qmap with gbutton event in R

I've been stuck on this issue for a while now and I'm really hoping someone can lend a hand. What I'm trying to do seems relatively simple, but for some reason I just can't get it to work. I'm trying to link the function qmap from the ggmap package…
1
vote
0 answers

How to add tooltips for gactions in gmenu bars?

I want to add a tooltip which pops up (at the position of the curser) by mouse hovering over the specific entry in a menubar. I am using Windows, gwidgets with RGtk2 and R version 3.0.3 My code looks like this: PG_top <- gwindow(...) …
1
vote
1 answer

How to trigger the handler of a button?

How is it possible to trigger the handler of a button in gWidgets2? Take this example: w <- gwindow("Buttons", visible=FALSE) g <- ggroup(cont=w, horizontal=FALSE) ## various buttons ## without icon b2 <- gbutton("ouvrir", cont=g) ## with a…
landroni
  • 2,902
  • 1
  • 32
  • 39
1
vote
1 answer

Unable to run R script containing gWidgets2 in command prompt

Say I have a basic r script: require(gWidgets2RGtk2) w<-gbasicdialog("Stage 1.5") visible(w) I save it, and attempt to run it with command prompt using a batch file that looks like this: @echo "C:\Program Files\R\R-3.0.2\bin\x64\Rscript.exe"…
Wet Feet
  • 4,435
  • 10
  • 28
  • 41
1
vote
2 answers

Extracing values of gedit in gbasicdialog

I am trying to create a interface where the user can key in a number for the script to run. However, I am unable to retrieve the value keyed into gedit. Can anyone help me? Here's what I have done: require(gWidgets2RGtk2) #Load…
Wet Feet
  • 4,435
  • 10
  • 28
  • 41
1
vote
2 answers

how can I retrieve changes to data frame edits from gdf

After making changes to a data frame using gdf, how do I retrieve the dataframe I have created? Sample code: require("gWidgets2RGtk2") ## Sample Data frame x<-data.frame(a=c(1,2,3),b=c(4,5,6)) ## Create Widget w<-gwindow("gdf") a<-gdf(x,cont=w) ##…
Wet Feet
  • 4,435
  • 10
  • 28
  • 41