Displaying 20 results from an estimated 500 matches similar to: "tk + browser() can leave R unresponsive"
2003 Jun 06
4
stuck tcltk scrollbars under Windows XP
Dear R-devel list members,
I've encountered a problem with my Rcmdr package under Windows XP and could
use some advice:
The Rcmdr package uses the tcltk package to create menus and dialog boxes.
My standard procedure when a dialog is created is to grab the focus -- e.g., by
tkfocus(top)
tkgrab(top)
(Here, top is a top-level window -- say, containing one or more
scrollbars.)
2009 Oct 19
1
Problem with geometry manager in TclTK
Hello, everyone.
I have the following problem with TclTk: I create some windows and want to
change their position with geometry manage (sometimes they will be centered,
sometimes not).
If the toplevel is created and its dimensions are gathered via 'tkwinfo', I
get (usually) correct values. However, if this window is created by a
function (in the following example, by 'ask.format')
2008 Jul 22
1
tklistbox and extracting selection to R
Dear experts,
I am trying to understand why is it that when I paste (into the R console) the following code to select an option from a list:
require(tcltk)
tt<-tktoplevel()
tl<-tklistbox(tt,height=ntx,selectmode="single",background="white")
tkgrid(tklabel(tt,text="Select the legend of" ))
tkgrid(tl)
treatments<<-levels.tx
for(i in
2008 Nov 23
1
tklistbox - R-Objekt
Hello, I have a problem with a tklistbox. The user should be able to choose
one out of two calculation methods needed for further calculations. My
r-script for that purpose looks like that:
require(tcltk)
tt<-tktoplevel()
tl<-tklistbox(tt,height=4,selectmode="single",background="white")
tkgrid(tklabel(tt,text="select method for LAI
2008 Jul 18
0
Retrieving data from a tcl /tk function
Hello,
I am sorry if this is an answered question, but I did my homework for a long while and couldn't figure out a way to retrieve data entry from a model dialog. In one of the examples compiled by James Wettenhall:
odalDialog <- function(title, question, entryInit, entryWidth = 20,
returnValOnCancel = "ID_CANCEL") {
dlg <- tktoplevel()
tkwm.deiconify(dlg)
2009 Apr 14
0
disappearing dialog boxes when using tcltk
Dear all,
I'm trying to use tcltk to build a small
user-interface and couter the problem:
It seems that sometimes the dialog box will be
minimized automatically though I want it to be on top
of the screen all the time.
For example, when runing the following code, if you
type in "a1", "a2", "a3", etc when being asked for an
integer, the program is supposed to
2009 Sep 28
2
re trieve user input from an tcl/tk interface
Hello everyone,
this is my first post here and I hope I signed up correctly and someone will
take me by the hand and help me out. I am new to R and cannot figure out
what to do here...
... I want to have an User Interface that requests input. I want to save
this input to a variable to use it later on. I was able to do this with a
modalDiaglog (
2010 Aug 03
1
adding FORTRAN code to a package
Dear R People:
Hello!
I'm putting together another RcmdrPlugin package and need to add a
FORTRAN subroutine to speed things up a bit.
I've never added compiled code to a package.
Anyhow, I put my code into a /src directory.
Here are the statements:
* using log directory 'c:/R/R-2.11.1/bin/RcmdrPlugin.push.Rcheck'
* using R version 2.11.1 (2010-05-31)
* using session charset:
2005 Apr 23
1
tclServiceMode: stop Tcl/Tk from updating
In Windows, Tcl/Tk programs running under the tcltk package can update
too frequently: for exmaple, we might go through a long sequence of
operations to construct a complex display, and in Windows each addition
will be shown separately.
To work around this, I've added a function "tclServiceMode" which serves
as an R interface to the "Tcl_SetServiceMode" function in the
2005 Apr 01
0
Selections from tcltk list boxes
Dear r-devel list members,
I've experienced the following problem in getting a selection from a Tk list
box using tcltk. This is a long-standing problem, but I've finally decided
to tackle it.
Consider the following:
Library(tcltk)
top <- tktoplevel()
listbox <- tklistbox(top, height="10", width="2", exportselection="FALSE",
2005 Jul 12
1
help: how to use tkevent.generate(...)
Hello,
I use package "tcltk" to do some GUI programming, and want to find a
function which can do the operation "click a button", just like using
a mouse to click. If tkevent.generate can do that? I tried it as
below, but failed. Please give me a hint!
tt <- tktoplevel()
tkwm.title(tt,"Simple Dialog")
onOK <- function(){print("OK")}
onCancel <-
2001 Feb 22
2
Problem with tcltk listbox
Hi!
I've got two problems with listboxes and selection:
I created a listbox, no problem. Then I bind the Button-1 of the mouse to the listbox to start some things by pressing the mousebutton. The proiblem is that as I click a item of the listbox this error occured:
Error in .Tcl(.Tcl.args(...)) : [tcl] bad listbox index "": must be active, anchor, end, @x,y, or a number.
Repaeting
2004 Feb 09
2
data.frame to matrix
Hello all,
I've had trouble converting a data.frame to a matrix (numeric) using either
data.matrix() and as.matrix().
After executing one of those I end up with another data.frame with only the
first column of the original data.frame.
I use a window (tcltk) to let the user choose the columns he wants and then
I retrieve them using the following:
varstemp <-
2012 Nov 19
6
tcltk freezing using MS Windows for R-2.14+
I am the maintainer of a Bioconductor package (affylmGUI) which uses
tcltk. It freezes inconsistently on MS Windows, but not Mac or Unix. see
details below.
After considerable testing I have reduced the problem from a few
thousand lines of code to 30 lines!
If you paste the following lines of code into an R window:
testGUI <- function(){
require(tcltk)
MainWindow <-
2005 Aug 31
1
tcl/tk return problem
Hello,
I'm very new in working with tcl/tk in R and have a problem which will
probably
sound silly to most of you.
Here is the code I have problems with:
readcelfiles <- function()
{
require(tcltk)
tt <- tktoplevel()
tkgrid(tklabel(tt,text="Choose a directory!"))
OnOK <- function()
{
fileDir<-tclvalue(tkchooseDirectory())
data.raw <-
2004 Jun 09
1
Using macros
Dear list members,
I've been puzzling over how best to clean up the code for my Rcmdr package.
In particular, there's a lot of repetitive tcltk code in the package, and as
Martin M?chler has pointed out to me, this makes the package difficult to
maintain.
If R were Lisp, I'd use macros for much of the clean up. My efforts to do
similar things with R functions has run into problems
2007 May 13
1
Dropdown boxes in tcltk and R
Hello,
I'm very much a newbie in R and more so in tcltk so apologies if this
question is stupid. Basically I am trying to use the combobox example
found here:
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/DropDown.html .
What I want to do is in that example get fruitChoice as a variable in R
in general. When I run that code, however, and the ask for fruitChoice
it says
2006 Mar 02
0
tcltk error when calling a dialog
Hello;
I've got several radiobuttons in tcltk with the following sintaxis:
tk2.rd <- /tkradiobutton(/frame4,command=plotDialog1,text="New Q plot", value=2, variable=OUTPLOTtclVar/)/
All the buttons call the same function "plotDialog1". With the objective
of call a dialog to select some plotting options.
When I select one of the radiobuttons and the windows with the
2008 Jan 14
1
Problems with forms
hello all
i''m a newbie on mechanize, but already had some success.
But now i''m in a real problem :
The following HTML-Code is not parsed corect, not all form element are
found. I''can''t change the server-code.
How to fix ?
HTML-Site
------X-----------------------------------------------------------------------X-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD
2013 Sep 01
1
[PATCH] remove a duplicate tk function definition (and alphabetize)
'tkcoords' is defined twice (in the same way) in src/library/tcltk/R/Tk.R.
Attached is a patch against r63780 that removes the duplicate
definition and alphabetizes the functions.
I've read that minor patches such as this should be sent to r-devel [1].
Scott
[1] http://permalink.gmane.org/gmane.comp.lang.r.devel/33987
--
Scott Kostyshak
Economics PhD Candidate
Princeton