Displaying 20 results from an estimated 400 matches similar to: "read.table in TCL/TK interface"
2008 Dec 22
1
newbie question on tcltk
Hi List,
Can anyone tell me how could i put the "BACK" button in the following code, just under the "AAA" menu? I want this button to go back to the previous page, and since it has nothing to do with the "1" and "2" buttons, i want it somehow separated from these two buttons, but i don't know how. I searched the web for some examples but my results
2006 Aug 11
2
tkinsert
Dear List,
I'm looking for some informations about the function "tkinsert()".
I d'like to write lot of command in my text window and after to evaluate it with a button "Submit" for example, but i have some problems:
here a exemple of my code:
1) My first problem
tt=tktoplevel()
txt=tktext(tt,height=40)
tkpack(txt)
var1=paste("x=2")
2003 Aug 15
1
menubutton don´t work
Why the variable archOp does not take the value that be chosen in the
menubutton?, therefore always remains as a white one, I intend to charge
the direccion of open files in a vector and then to elect with the
menubutton with which to work but not functions thanks.Ruben
library(tcltk)
arch<-tclVar(init=" ")
archOp<-tclVar(init=" ")
vectPath<-c()
2003 Sep 08
1
add checkbutton and the variable(wrong length of vector "b")
Hello it wanted to add a boton of checkup in a menu, ?How I do to create so
many variables as checkbutton? I try with the code that continues, use a
vector that is charged dynamicamente while I open files but the component
of vector "b" is associates with a Tcl variable and load 3 components
(environment, value and pointer) I wanted alone to charge the value (0 done
not select
2008 Aug 19
1
Open directory within a menu in tcltk
Hello,
I am trying to setup a menu to open files and directories. I have the following code:
opendir<-function() {
dirname<<-tclvalue(tkchooseDirectory())
}
openfile<-function() {
filename<<-tclvalue(tkgetOpenFile())
}
require(tcltk)
t1<-tktoplevel()
topMenu<-tkmenu(t1)
tkconfigure(t1,menu=topMenu)
plotMenu<-tkmenu(topMenu, tearoff=FALSE)
2007 Jan 22
0
How to disable existing menus in tcltk?
Hi!
I've constructed a small menu-driven interface to a couple of R functions
using the possibilities offered by the tcltk package. When user runs some
specific analyses, I would then like to disable some of the menus (or menu
choises) that are not applicable after the performed analysis. I tried to
modify the state of an existing menu, but it seems that neither
tkconfigure nor
2008 Nov 08
1
Get Information
I am a new commer in R. I am using the library tcltk, i need few information about it.
so that, i wrote the following programme to save the file, but when i save the file, i do not find the file save, please help me, in order to continue my projet.
this is the programme:
tt <- tktoplevel()
txt <- tktext(tt)
tkwm.title(tt,"Saisi des modalités") #intitule la fenêtre
tkgrid(txt)
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 <-
2010 Jul 22
1
check menu button (tcltk)
Hi,
I am making a mock user interface in tcltk and I would like to add a 'check menu button' such as shown here: http://zetcode.com/tutorials/pygtktutorial/images/checkmenuitem.png
Does anybody know how to do this? I am quite new to R.
Cheers!!
Albert-Jan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine,
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,
2006 Aug 02
2
tcl/tk bind destroy event
Hello!
I want to create a messagebox whenever the user wants to destroy the window
(e.g. <Alt-F4> or the 'x' in the right top corner) and ask if a modified file
should be saved or not.
If 'cancel' is chosen then nothing should happen and the windows still should be
existing. This doesn't work. When I press cancel the window will be destroyed
although.
I also
2011 Nov 21
1
invalid command name "tk::MenuDup"
Hi to all,
I'm developping an user interface in TCL/TK but in some computers this error
occurs :
<Tcl> invalid command name "tk::MenuDup"
when the user runs :
tm <- tktoplevel(height=500,width=800)
topMenu <- tkmenu(tm)
tkconfigure(tm,menu=topMenu)
i don't understand why this code works on my computer and is not running on
other user environment ?
thanks,
--
2004 Mar 16
0
MDI and submenues
Hello wxruby-users,
Kevin, thanks for fast addition of the support of MDI and submenues!
I''ve tested it under WinXP and all works very well. There is a test
example at the end of the message.
--
Best regards,
Pavel
mailto:papushev@inp.nsk.su
#================================================
require ''wxruby''
include Wx
class MyFrame < MDIParentFrame
def
2001 Feb 03
1
tk non-widget commands (esp. update and winfo)
Hi,
I've been playing with the tcltk package. It's very nice to have
access to buttons, menus etc. now. Thank you!
Alas, I also have questions: In Tcl everything is a string [*]. This
is not the case in R, of course. So why are return values of tk
commands still strings? (Is there any other reason than speed or
"package is work in progress"?)
Example:
> tt <-
2004 Apr 23
4
Tcl Tk table
Hi
I've a problem with the following example:
library(tcltk)
.Tcl("array unset tclArray")
myRarray <- matrix(1:1000, ncol=20)
for (i in (0:49))
for (j in (0:19))
.Tcl(paste("set tclArray(",i,",",j,") ",myRarray[i+1,j+1],sep=""))
tt<-tktoplevel()
table1 <- tkwidget(tt,"table",variable="tclArray",
2012 Nov 23
1
Adding a function with default parameters into the Rcmdr menu
Hi everyone,
I made some tests with Rcmdr, to add a function with default parameters :
For example (very simple):
myfunction<-function(var="314"){
print("hello")
print(var)
}
if I run myfunction() directly i see :
> myfunction()
[1] "hello"
[1] "314"
it's ok.
But if i edit de Rcmdr-menu.txt (in
2008 Apr 14
3
Copy-paste between FXTable and FXTextfield
Hi,
I''m using FXRuby 1.6.13 under Windows XP / Ruby 1.8.6.
I''ve noticed something strange when copying-pasting things between
FXTable cells, and FXTextfields.
----------------------------------------------
1) When copying the content of an FXTextfield, and pasting it into an
FXTable cell, everything works fine.
2) When selecting an FXTable cell, issuing a "copy"
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)
2004 Apr 19
1
Menu addditions to Rcmdr v0.9-6
1) In general, I would appreciate help in adding functions to the Rcmdr
menu system. I've been able to modify the menus themselves and source test
code but I can't get R functions to execute from the menu. My latest proof
of concept code follows:
Three lines added to "Rcmdr-menus.txt":
menu junkMenu topMenu "" ""
2003 Jul 30
1
Tktable White column when WIDTH>13
On Wed, 30 Jul 2003 TSudler at ch.imshealth.com wrote:
<SNIP>
table1 <- tkwidget(tt,"table",variable="tclArray",
rows=as.character(dim(datifram)[1]+1),
cols=as.character(dim(datifram)[2]),titlerows="1",
titlecols="3",selectmode="extended",height="27",