Displaying 20 results from an estimated 23 matches for "gwindow".
Did you mean:
window
2012 Mar 30
1
Error in use of "gwindow" and ".First" function
...saved an image and planed to open it whenever I want to load it.
However, when I open it, It doesn't work.
The code is following, and saved it as an image.
.First<-function(){
require(tcltk)
require(TeachingDemos)
library(gWidgetstcltk)
options(guiToolkit = "tcltk")
win <- gwindow("Don't worry", visible = FALSE)
}
Error message is following,
Error : .onLoad failed in loadNamespace() for 'tcltk2', details:
call: .tk2dde.require()
error: Unable to find the 'dde' Tcl/tk package!
Warning messages:
1: In tclRequire("dde") : Tcl packag...
2007 Aug 22
2
gWidgets (tcltk): problem extracting values from widgets in glayout grid
...turn "bbb", either by
itself or as part of an array? Or do I need to do something else
entirely?
(R2.5.1; Windows XP)
> #### gWidgets test
> options("guiToolkit"="tcltk")
> require(gWidgets)
[1] TRUE
>
> ###### Case 1: this works ########
> wtesta = gwindow("wtesta",visible=TRUE)
> wtesta1 = gedit("aaa",container=wtesta)
> print(svalue(wtesta1))
[1] "aaa"
>
> ### Case 2: this makes an identical window & widget, with "b"
replacing "a"
> ### but does't return the value
> wtesta...
2013 Feb 04
0
gwidget position on screen
Hi guys,
I have a problem with the placement of my gwindow widget. When I start the
gwindow widget it is displayed near the middle of my screen but I want that
the widget is on the upper left side of my screen. Is it possible to define
where my gwindow pops up? And additionally, I want to focus my gwindow
permenantly. Is that possible, too
Thanks,
Norwege...
2009 Dec 27
2
RGtk2 / gWidgets - addHandlerClicked Problem
In The following code, the table handler is executed twice when the
button is pressed (from the 2nd pressing on).
I want it to be executed only once. Does someone know, why this
happens and how I can change it?
library(gWidgets)
w <- gwindow()
b <- gbutton("press", cont=w)
tbl <- gtable(1:10, cont=w)
addhandlerclicked(b, handler=function(h, ...){
cat("addhandlerclicked button\n")
svalue(tbl, index=T) <- 1 # change the table value
})
addhandlerclicked(tbl, handler=function(h, ...){
cat("addhandle...
2008 Dec 12
1
How to mimic select.list using RGtk2/gWidgetsRGtk2?
I want to write a function mimic the function of select.list(), here
is my preliminary version.
select <- function(x,multiple=TRUE,...){
ans<-new.env()
g <- gwindow(title=title,wid=200,heigh=500)
x1<-ggroup(FALSE,con=g)
x2<-gtable(x,multiple=multiple,con=x1,expand=TRUE)
gbutton("OK",con=x1,handler=function(h,...){
value <- svalue(x2)
if (length(value)==0) value=""
assign("selected",value,env=h$action$env)
dispose(x1)
},ac...
2009 Dec 27
1
gWidgets / RGtk2 - how to change a handler from a toolbar?
I want to assign a default handler to a toolbar button and change the
handler later.
The addhandlerclicked() method does not apply to a gAction Object, I
think...
defHandler <- function(h, ...) print("default")
w <- gwindow()
aTest <- gaction(label="Test", icon="open", handler=defHandler)
tblList = list( test = aTest )
toolBar = gtoolbar(tblList, cont=w)
At this point I would like to change the handler from the aTest object.
Does someone know?
TIA
Mark
????????????????????????????????????...
2006 Oct 06
2
[R-pkg] New packages pmg, gWidgets, gWidgetsRGtk2
...ations or for rapid prototyping of more complicated applications.
An accompanying vignette shows many examples of its use. For a simple,
but not trivial, illustration, this code, following chooseCRANmirror(),
shows how to use gWidgets to make a dialog for selecting a CRAN mirror.
<<
win = gwindow("Select a CRAN mirror")
size(win) <- c(600,400)
tbl = gtable(utils:::getCRANmirrors(), chosencol=4, filter.column=2,
container=win,
filter.column=2,
handler = function(h,...) {
URL = svalue(tbl)
repos <- getOption("repos")...
2006 Oct 06
2
[R-pkg] New packages pmg, gWidgets, gWidgetsRGtk2
...ations or for rapid prototyping of more complicated applications.
An accompanying vignette shows many examples of its use. For a simple,
but not trivial, illustration, this code, following chooseCRANmirror(),
shows how to use gWidgets to make a dialog for selecting a CRAN mirror.
<<
win = gwindow("Select a CRAN mirror")
size(win) <- c(600,400)
tbl = gtable(utils:::getCRANmirrors(), chosencol=4, filter.column=2,
container=win,
filter.column=2,
handler = function(h,...) {
URL = svalue(tbl)
repos <- getOption("repos")...
2009 Jun 25
1
How do I define the method for gcheckboxgroup in gWidgets?
...s.
yrange <- gslider(from = 0, to = max(y), by = 1.0,
value = max(y), handler = update.Plot)
which.y <- gcheckboxgroup(stuff, handler = report.which, index = TRUE,
checked = c(TRUE, FALSE, FALSE, FALSE, FALSE))
# Assemble the graphics window & groups of containers
mainWin <- gwindow("Interactive Plotting")
bigGroup <- ggroup(cont = mainWin)
leftPanel <- ggroup(horizontal = FALSE, container = bigGroup)
# Format and pack the widgets, & link to their actions/type
tmp <- gframe("y range", container = leftPanel)
add(tmp, yrange, expand = TRUE)
tmp...
2010 Sep 24
4
Object Browser
What's the best object browser?
Dear all,
I have tried all the popular R IDE or editors like Eclipse, Komodo, JGR,
Revolution...
They all have fancy fucntions like auto completion, syntax highlight....
BUT, I JUST WANT A OBJECT BROWSER!
The easiest way to view objects in R console is fix(), but you have no
global view of all the objects in the workspace.
Revolution has the best object
2009 Nov 28
1
how to put ggobi display into a GUI window setup by gWidgets
Hi,
I want to put a ggobi display into a GUI window setup by gWidgets, but error
occur said it is not a S4 object.
Does anyone have any idea about how to put it in or maybe it can not be put
into a widget at all?
Thanks A LOT!
--
View this message in context: http://n4.nabble.com/how-to-put-ggobi-display-into-a-GUI-window-setup-by-gWidgets-tp930529p930529.html
Sent from the R help mailing list
2009 May 27
0
invisible columns
...are using gWidgetsRGtk2 -- if you are
> using gWidgetstcltk let me know and I'll find something similar) as
> follows:
>
> library(gWidgets)
> library(RGtk2) ## load in RGtk2 methods
> options(guiToolkit="RGtk2")
>
> t <- gtable(mtcars[1:5, 1:4], cont = gwindow())
>
> removeColumn <- function(t, col.num) {
> name <- names(t)[col.num]
> tbl <- getToolkitWidget(t)
> ## remove a column, but store old one first to add back
> col <- tbl$getColumn(col.num - 1) # 0- based
> tbl$removeColumn(col)
> return(list(name=...
2011 Dec 18
1
gWidgets: how to remove that is box drawn when moving the mouse with pressed button
...it over a GTK graphics object?
I have seen that in the 'playwith' package the box changes to an arrow when
using the 'pan' button. But I do not find the corresponding line in the code to implement that.
library(gWidgets)
options("guiToolkit"="RGtk2")
w <- gwindow()
g <- ggraphics(cont=w)
par(mar=rep(0,4))
size(g) <- c(600,600)
plot(1:10)
Thanks!
Mark
????????????????????????????????????
Mark Heckmann
Blog: www.markheckmann.de
R-Blog: http://ryouready.wordpress.com
2012 May 29
1
gslider-gwidgets
Hello R lovers,
For my GUI, I am using gslider of Gwidgets. I need to add the "to=" value
dynamically ie., maximum value from a data frame column(something like
to=max(df[,3])). But I am getting error message like
Error in checkPtrType(object, "GtkWidget") :
object of class NULL isn't a GtkWidget
Not sure what I am missing here!!!
Regards,
karthick
--
View this
2012 Nov 30
1
How to add widgets of gWidgets to widgets of rgtk2 ???
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()
2007 Mar 13
2
gtk button: how to create signal handler?
Hi
Kindly correct me if I am posting a wrong query in the forum.
I am trying to handle my "button:clicked" event. But not able to proceed
further. Please help.
Following is my code:
library(RGtk2)
win <- gtkWindowNew(type = NULL, show = TRUE)
butt <- gtkButtonNewWithLabel("Submit", show = TRUE)
win$Add(butt)
Now I want to do something when my button is clicked. How
2008 Feb 12
1
gWidgets process management
Hello,
I'm trying to make a graphical interface for an R function
I've written. A common use for the function is to call it with
specific parameters, and then watch the output as it evolves.
There's not necessarily a logical stopping point, so I usually
use ctrl-C when I'm done to stop it.
I've made a gWidgets interface to the function that gets some
user info and then on a
2013 Apr 23
1
Automation of R input
Hi all,
I have R script which during its run require an input like this:
choose between one of the grouping factor available :
c("Village", "Country")
can I automate this part, in other word to pass for example Village when I
am running the script.
One more thing the script is the TimeSeriesAnalysis {ndvits}.
Thanks in advance for any help or suggestion.
Regards,
Vahe
2009 Dec 22
1
RGtk2 - retrieve ggraphics mouse coordinates during drag-and-drop event
...ot know how to get the mouse ccordinates of the
ggraphic widget at any given time.
How can I access the ggraphics mouse coordinates?
Below you find my sample code (windows only due to ggraphics).
TIA,
Mark
library(gWidgets)
library(RGtk2)
options("guiToolkit"="RGtk2")
w = gwindow("ggraphics example")
table <- gtable(1:10, container=w)
g = ggraphics(cont=w, expand=T)
size(g) <- c(500,500)
Sys.sleep(1)
plot(rnorm(20), col="red")
## convert from "plt" coordinates to more familiar "usr"
pltToUsr = function(x,y) {
plt = par("...
2013 Feb 14
0
Building a Package & using gWidgets
...touched R to use it.
The gui needs to be able to edit the settings - like with the fix command above, to save a settings object to file, and to read in setting from an object file. I've built this with gWidgets:
gui <- function(){
INPUT <- matrix(c(1:4),nrow=2,ncol=2)
mainwin <- gwindow("MainWindow")
button1 <- gbutton("Edit Settings", cont=mainwin, handler=
function(h,...){
fix(INPUT)
print("Settings Edited")
})
button2 <- gbutton("RUN&quo...