search for: tkcanvas

Displaying 20 results from an estimated 21 matches for "tkcanvas".

2007 May 24
1
GUI component Margin on tkcanvas, tkframe or tktoplevel
Dear gurus: I have a question on how to configure the margin layout on tcl/tk GUI objects like tkcanvas, tkframe or tktoplevel. For example, if I want to leave a larger margin on the left side of the GUI container, which one should I configure, the toplevel or tkcanvas or tkframe? top<-tktoplevel() canvas<-tkcanvas(top, relief=, borderwidth=...) I also find the documentation for all the pos...
2010 Jun 22
0
Scrolling a tkcanvas non-starter
Hello, Is it possible to scroll a canvas that has a column of listboxes in it? Does scrolling only work with listboxes and text widgets? The following code displays the scrollbar, but - it has no thumb - does not respond to mouse clicks. - the vertical height of the tkcanvas (i.e. column1) is unconstrained. It's lower edge is out of view, and the lower button on the scrollbar is out of view. I expected the scrollbar and canvas to have a height of 200 pixels and to be able to use the scrollbar to bring different listboxes into view. I created this from examples on...
2008 Oct 30
3
using yscrollcommand in tkcanvas crashes R (PR#13231)
Full_Name: Sundar Dorai-Raj Version: 2.8.0 OS: Windows Submission from: (NULL) (76.220.41.126) The following code crashes R: library(tcltk) tt <- tktoplevel() tc <- tkcanvas(tt, yscrollcommand = function(...) tkset(ts, ...)) > sessionInfo() R version 2.8.0 (2008-10-20) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached b...
2007 May 16
2
Is it possible to pass a Tcl/Tk component as argument to a function
...at conduct statistical analysis using a GUI interface by Tcl/Tk, they share many identical GUI components. What I am trying to do now is to simplify the code by writing a GUI repository for all the components they use, thus save effort for code maintenance. Since they all use: mainFrame <- tkcanvas(top) -- I wonder if I can write functions that take mainFrame as an argument, and call those functions from other place with initialized tkcanvas object. I did not see example like this and from my *limited* experience with tcltk, I found it always need something to be initialized before put...
2003 Oct 15
0
tkcanvas/bitmap for Turtle World
To represent a turtle inside a canvas (tcltk package), I have a serie of bitmaps representing the turtle heading in different directions and I would like to display the one that corresponds to the current direction of the turtle (function below). I have created with Paint a bitmap representing the turtle in BMP format and succeeded displaying it on canvas after converting it into XBM format
2005 Sep 05
1
tcltk, X11 protocol error: Bug?
...title(tt,"Color Ramp Tool") frame <- tkframe(tt) bframe <- tkframe(frame,relief="groove",borderwidth=1) if(is.null(b.color)) b.color <- "blue" if(is.null(e.color)) e.color <- "yellow" if(missing(n.col)) n.col <- 100 canvas.b <- tkcanvas(bframe,width="50",height="25",bg=b.color) canvas.e <- tkcanvas(bframe,width="50",height="25",bg=e.color) canvas.r <- tkcanvas(tt,width="300",height="50",bg="white") BColor.button <- tkbutton(bframe,text="Be...
2002 Feb 15
1
embed image in R-tcltk canvas
Hi, I think that R-tcltk doesn't have the capacity to display an image stored in memory on a tkcanvas object, am I right? I have digged around everything I can find from Peter Dalgaard and tcltk references and drew my conclusion. Can you, Peter, or some other gurus on the list, give us a pointer or two on how to proceed to solve this problem? I am afraid that it may involve writing C extensions...
2006 Mar 15
3
click on graph and select data points?
Hi all, I am doing some clustering and the clustered results are presented in a "pairs" plot showing 4 clusters... I made the data points belong to 4 different clusters displaying different colors. Now I want to select the best clustered class, how can I click on the data point, and the program returns the index of that cluster(its class number, or color number)? Also, if I would
2002 Oct 30
2
native OS X R
...interface does not work (R --gui=aqua) -- it does not show up. I am not sure if it is supposed to. So we work from the terminal. 2. The windows do not handle events properly. Clicking on the Quartz device gives RCNE SendEventToEventTarget (mous Up ) failed, -9874 Running the tkcanvas demo is more satisfactory. Points can be colored and dragged, and the line adjusts fine, but the window never becomes the front window and the terminal bitterly complains SetFrontProcess failed,-606 at each mouse event. === Jan de Leeuw; Professor and Chair, UCLA Department of Statistics; Editor...
2003 Oct 27
1
Difficulties with R.oo (static fields, etc.)
...rld if necessary require(tcltk) || stop("tcl/ library not available") if(!is.tkwin(new$.canvas)) { # check to see if it is first instance or not cat("Create Turtle World\n") top <- tktoplevel() tktitle(top) <- "Turtle World" canvas <- tkcanvas(top, relief="raised", width=200, height=200) tkpack(canvas, side="top", fill="both",expand="1") new$.canvas<-canvas # store canvas widget in static field new$.top<-top } plot.TurtleBasic(new) # plot Turtle new }) setMet...
2005 Jan 08
1
coordinates of mouse position
HI, I need known the position of mouse, but i not know how obtain the parameter %X used in tcl. the script in Tcl is: set w .probe catch {destroy $w} toplevel $w proc Captura_Datos { ancho alto } { puts "El ancho es $ancho" puts "El alto es $alto" } bind $w <Configure> "Captura_Datos %X %Y" In R w<-tktoplevel() f<-function(a,b)^` print(a) print(b)
1998 Apr 01
0
R-tk mailing list
...ish with time, of course) - inefficiency? - the Tcl language, which many aren't too happy with I guess that a sensible prioritization/sequencing of the work could be (not that I'm trying to take control or anything...) 1) Getting a simple Tk Console running with R 2) Device driver for a TkCanvas graphics widget 3) Looking at the glue mechanisms used in e.g. STk (Scheme/Tk) 4) Designing R/Tk interface functions To join up, send a one-line message containing the word "subscribe" to R-tk-request@stat.math.ethz.ch (in the *body*, not the subject). -- O__ ---- Peter Dalgaard...
2003 Feb 27
0
R-devel/R-patched crossed with Xterm/IDLE
...with the quartz device or with native tcltk, because the windows do not accept events (cannot be brought to the front). I know why this does not work (Terminal.app is the frontmost application and it does not know anything about those windows). IDLE/Rpy with R-devel can do some of the tcltk demos (tkcanvas, tkdensity, tkfaq) but not all (tkttest,tkfindfile). And, surprisingly enough, IDLE/Rpy with R-patched can do the same demos (and fails on the same demos), although its tcltk is compiled using fink's X11 based tk. No X server is running in these cases. I have no idea why some demos work a...
2002 Aug 19
1
[Fwd: LispStat, R and ViSta [was: Re: Status?]]
...any of the mapping functions etc from Lisp), I think we would go a long way towards this goal by just adding dynamic graphics to R (which people are working on, it seems). In fact, the tcltk interface (which now exists natively on MSW, X11, and Aqua) already has some mouse interaction -- see demo(tkcanvas), and quite a bit can be done by using nonstandard packages such as RGtk (on MSW and X11). I really hated to give up Lisp (and many lines of existing code), and I agree that extensions such as Vista and Arc are major arguments in favor of XLS, but it seems that XLS is best as an environment to d...
2002 Aug 19
0
[Fwd: LispStat, R and ViSta [was: Re: Status?]]
...d be fixable easily enough? > We {most of R core} would be very glad to be able to say > "tcltk runs on all platforms that R runs" and hance can be > easily made available on all platforms. > > > Jan> already has some mouse interaction -- see > Jan> demo(tkcanvas), and quite a bit can be done by using > Jan> nonstandard packages such as RGtk (on MSW and X11). > > > Jan> I really hated to give up Lisp (and many lines of > Jan> existing code), and I agree that extensions such as > Jan> Vista and Arc are major argu...
2002 Sep 13
4
tcltk documentation
> Dear all, > I am looking for basic examples of the use of tcltk in R. > Thank you in advance for any information, R-script, ... Most of us started from the handful of examples you can see via demo("tcltk") There are also some good examples in the mailing list archives though some of the R to Tcl/Tk interfaces changed slightly in recent releases. -- According to the
2005 Jul 31
3
Drawing a graph with vertices and edges using tcl/tk
Dear all; I would like to draw a graph with vertices and edges, and I guess tcl/tk would be appropriate. I don't know tcl/tk but have googled for a 10-page (or so) introduction to 'getting started with tcl/tk in R' but without any luck. - Does anyone know of the existence of such a document or any other web-based material on the subject? - Does anyone have an (informative) piece of
2008 Jan 15
3
How to interrupt a loop by pressing a key?
Hello, Does anyone know a way of interrupting a loop by pressing a key (besides ctrl-c)? My problem is the following: I have a machine acquiring data and saving text files into a directory. I have an R script that read those files, process them and plots the results. What I would like to do is: process the data as the files appear in the folder (I've done that do with a loop that checks
2001 Nov 13
4
Floating windows in TCLTK
Dear anybody dealing with TCLTK on R I'm trying, without any success, to get a simple TCLTK window to remain floating on top of the RGui and RConsol windows when the later have focus. I cannot find reference in the TCKTK documentation and fear that I'm missing something quite fundamental. My objective is to make a simple button populated menu to invoke R functions. I wish the TCLTK menu
2002 Mar 14
1
gif, jpeg and png image files reader AND tcltk image
Hi all, Roger Peng and Jason Turner's suggestion with ImageMagick seem to be the simplest "dirty" way to get the problem solved. But I ran into yet another interesting but quite round-about way to solve the problem (partially). Through tcltk package, one can read in the gif image with > x <- tkcmd("image", "create", "photo", file=mypic.gif)