[R] How to add widgets of gWidgets to widgets of rgtk2 ???

KRISHNA2222 krishnaiah.ac at gmail.com
Fri Nov 30 08:28:57 CET 2012


I have a layout in  gwidgets. To this, I wanted to add a Textbox(gtkEntry)
created from rgtk2... 

The code is as follows: 

MainLayOut <- glayout(homogeneous = FALSE, spacing = 10, container =
SubGroup)
MainLayOut[1, 1, anchor=left] <- "Number of Total Patients: "
font(MainLayOut[1, 1, anchor=left]) <- c(weight="bold")
patients <- gtkEntry()
patients['text'] <- "200"
patients['xalign'] <- 1
MainLayOut[1, 2, anchor=Right ]$add(patients) # <- gedit("200",
container=MainLayOut)

Error: Error in MainLayOut[1, 2, anchor = Right]$add : 
  $ operator is invalid for atomic vectors

please provide me a solution

Thanking you
Krishna



--
View this message in context: http://r.789695.n4.nabble.com/How-to-add-widgets-of-gWidgets-to-widgets-of-rgtk2-tp4651396.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list