[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-gui
Subject:    [R-gui] Return value from gWidgets
From:       Sebastian Mellor <sebble () sebble ! com>
Date:       2011-07-19 13:20:41
Message-ID: CAOyiOQGzPQ-hNuseKaDycHzSekK6RAn+Qcy2PWJmosZ6j2GTCg () mail ! gmail ! com
[Download RAW message or body]

Hello all,

I am still working on a GUI for hyperSpec, interactive graphics has also
become a part of my learning.  Right now I am using gWidgets and would like
to jump back and forth between command line and GUI for individual tasks.
 The problem here is my gWidgets GUI is not modal and cannot return
resultant data.  This may be a simple fix, `modal=TRUE`, maybe not.  I know
that R doesn't pass by reference (environments not included), and so a modal
GUI wouldn't be a problem here if it is possible to create one with
gWidgets.

What are the usual methods for returning data from a GUI?

As proof of concept I created a mutaframe with qdata() from cranvas, passed
that to the GUI function and attached a handler to a button, this works as
expected with the value changing if the button is clicked, clearly I do not
want the other columns from qdata, and I don't really want to use a
dataframe as my original object, but if this is a sensible way to go then
working out how to use as.mutaframe (possibly from plumbr) could work. See
https://gist.github.com/1092289.

Thought, common solutions..

Cheers,
Seb

	[[alternative HTML version deleted]]

_______________________________________________
R-SIG-GUI mailing list
R-SIG-GUI@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-gui
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic