similar to: BATCH and tcltk

Displaying 20 results from an estimated 1000 matches similar to: "BATCH and tcltk"

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.)
2003 Apr 24
3
R TclTk Examples
Hi, I've been learning how to use R TclTk in Windows over the last few months. I have recently put together a collection of examples of some common widgets and their corresponding R code, at http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/ I would be interested in any feedback - Is it useful? Does it contain any significant errors or bad coding style? Does anyone else want to
2003 May 13
3
Delete files from R
Hi, I have a file: d:\foo.txt and want to delete this. I tried: system("del d:/foo.txt") works not system("notepad d:/foo.txt") works Is it possible that I can't delete files or do I have misunderstood something? (del is a DOS-command. The "string works" under DOS "\") Thanks a lot Thomas ----- Windows XP R 1.6.2 (update!, I know)
2005 Jun 04
2
locator() via tcltk
Hello, I'm trying to write a function using tcltk to interactively modify a plot and gather locator() data. I've read Peter's articles in Rnews, the help pages in tcltk, http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/, plus a post in R-help sometime ago, but haven't found a solution. The idea goes something like this: require(tcltk) testplot <- function() { getcoords
2002 Sep 26
3
tcltk - command=function()
hi, just having the idea create a simple tcl/tk gui-dialog for different data-file formats i get starting problems and it would be nice get some tips/tricks from experienced tcl/tk user in R ! tt <- tktoplevel() label.widget <- tklabel(tt,text="Decision Tree GUI") button.widget <- tkbutton(tt,text="Select SPSSFile", command=function()
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')
2020 Jun 07
7
use of the tcltk package crashes R 4.0.1 for Windows
Hi, The following code, from the examples in ?TkWidgets , immediately crashes R 4.0.1 for Windows: --------------------- snip -------------------- library("tcltk") tt <- tktoplevel() label.widget <- tklabel(tt, text = "Hello, World!") button.widget <- tkbutton(tt, text = "Push", command = function()cat("OW!\n")) tkpack(label.widget,
2007 Oct 08
3
tcltk scrollbar
The following code should give me (at least that's what I think) two list boxes with their individual scrollbars. But instead both scrollbars stick to the same listbox even though they work as they should (scroll individual listboxes). When I remove all the widgets on top everything works perfectly. Any help would be highly apprecciated. ps: all subsequent listboxes and scrollbars work
2011 Nov 07
1
tcltk window freezes when using locator( )
Hello useRs Using the following code: library(tcltk) win<-tktoplevel() ff<-function(){ plot(1:10,1:10) pol<-locator(1) print(pol) } button<-tkbutton(win,text="test",command=ff) tkpack(button) makes the win panel stop responding when the plot is closed before choosing a location. Usually, the windows task manager has to be used to
2001 Feb 03
1
callback environment for Tk buttons
Hi. I'm running into problems with using R functions as callback commands for buttons in Tk. The following Tcl/Tk script creates three buttons. If you press hello it prints hello world. If you press HALLO it prints HALLO WORLD. Not exciting, but I need an example... set tt [toplevel .tt] foreach i {"hello" "HALLO"} { pack [button $tt.b$i -text $i
2007 Sep 19
1
Running tcltk From a batch file
Hi, I am trying to run some simple tktcl code.... ## in a file called test.R require(tcltk) tt <- tktoplevel() OK.but <- tkbutton(tt,text="OK",command=function()tkdestroy(tt)) tkgrid(OK.but) tkfocus(tt) Using a batch file with the command Rterm < test.R > testOutput.Rout --slave The GUI pops up but then disappears. The results in the test.Output.Routfile are > # Load
2000 Sep 29
1
Two tcltk questions and Re: tcltk package functionality
Sorry, for my mail from last night contains no subject. Therefore, I send it again and two tcltk questions are appended. ---------------------------------------------------------------------------- Prasad wrote: > I wrote a function in R which uses tcltk package .... essentially I wanted > to give within that function, a widget with 2 radiobuttons to choose > between plotting Precip
2002 Apr 22
2
Quit R by pressing button (tcltk) (PR#1475)
Full_Name: Joachim H. Strach Version: 1.3.1 OS: Windows 98 Second Edition Submission from: (NULL) (132.230.131.220) I am using the tcltk package. Error-example: ---- library(tcltk) top<-tktoplevel() but<-tkbutton(top,text="Quit",command=function() {q(save="no")} ) tkpack(but) ---- then press the Quit-Button. On my Platform there will be a execution fault with
2003 Apr 23
0
tk windows position
Dear r-hackers, I want to split my screen into four screens (like split it do in Rgui). To get this I do the following: Window1 <- tktoplevel() Window1 <- tktoplevel() Window1 <- tktoplevel() Thomas Untern?hrer E-Mail: thomas.unternaehrer at zhwin.ch Institut f?r Datenanalyse und Prozessdesign Tel: 052/ 267 7813 Z?rcher Hochschule Winterthur
2005 Sep 05
1
tcltk, X11 protocol error: Bug?
Hi, I am having trouble debugging this one. The code is attached below, but it seems to be a problem at the C-tk interface. If I run this 1 time there are no problems if I run it more than once I start to get warnings that increase in multiples of 11 everytime I run it. Here is a sample session > source("clrramp2.r") Loading required package: tcltk Loading Tcl/Tk interface ... done
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
2007 Mar 30
3
RWiki, tcltk and plot
I think I - almost - got the knack for GUI programming using the tcltk library. Maybe I will update the RWiki with this: # ################################################# # library(tcltk) # # Create some matrix - nothing about tcltk here # matrix <- cbind(rnorm(100), rpois(100, lambda=10), runif(100), rt(100, df=2), rt(100, df=4)) colnames(matrix) <- c("Normal",
2004 Dec 28
1
win variable in tcltk
The following gives an error message: library(tcltk) win <- list(env="A") tt <- tktoplevel() but <- tkbutton(tt, text="X", command=expression(tkdestroy(tt))) tkgrid(but) however, if one comments out the win line (and removes the win variable) then it works. It seems that tcltk is making use of a variable called win with a component name of env and I just happened
2020 Jun 07
5
use of the tcltk package crashes R 4.0.1 for Windows
So this wasn't tested for a month? Anyways, Free() is just free() with a check that we're not freeing a null pointer, followed by setting the pointer to NULL. At that point of tcltk.c, we have for (objc = i = 0; i < length(avec); i++){ const char *s; char *tmp; if (!isNull(nm) && strlen(s = translateChar(STRING_ELT(nm, i)))){ // tmp =
2001 Sep 19
2
tcltk: Difficulties creating menus
I am struggling with adding menus to a tcltk application. The following example (from the O'Reilly book on Perl/Tk) works fine: #!/usr/bin/perl -w use Tk; my $mw = MainWindow->new; $menub = $mw->Menubutton(-text => "Color")->pack(); foreach (qw/red yellow green blue grey/) { $menub->radiobutton(-label => $_, -command => \&set_bg,