Displaying 20 results from an estimated 100 matches similar to: "menubutton don´t work"
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
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,
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)
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,
2003 Sep 09
1
charge a vector with variables and to use as variable in a checkbutton?
hello, how i cant to charge in form dynamic a checkbutton, try to do it
with a vector be charged automaticamente but not
works, for example
library(tcltk)
tt<-tktoplevel()
f<-tkframe(tt)
tkpack(f)
i<-2
if (i==1) {b1<-tkcheckbutton
(f,text="b1",variable="b1",relief="raised");tkpack(b1);print(tclvalue
("b1"))}else if (i==2) {b1<-tkcheckbutton
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
2000 Aug 09
2
tcltk_example
Hello R and tcltk users...
I'm running into difficulties applying the tkmenubutton() and tklistbox()
functions, found in the tcltk package, to a simple gui. My search for R
code which utilizes these two functions has come up empty. Currently, I am
attempting to translate pure "Tcl/Tk" code to R with little to no success.
So far, the most helpful tool for learning the tcltk R
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 <-
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)
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")
2007 Oct 19
1
tcltk: help with tkmenubutton
I am struck here. What magic inchantation is required with tkmenubutton?
I am converting the examples of Perl/Tk from page...
http://gd.tuwien.ac.at/languages/perl/Hajji-Perlkurs/part4/tkperl.html
... to R's tcltk.
But I don't know how to convert one line in this example:
library(tcltk)
# create a main window
mw <- tktoplevel()
# a menu consists of a horizontal menubar,
# with
2002 Feb 11
0
read.table in TCL/TK interface
hello,
i would like program userfriendly tcl/tk widgets like
the t-test example in a more complex way !
(1) Is it not possible to combine tk_getOpenFile with
the R function read.table to select in userfriendly way data sets ?
(I'm newbie and take code-parts from t-test example and scripting example.)
(2) Is it possible to use a variableSelection widget
to select a special variable which i
2011 Jan 11
0
modified FAST Script from package SensoMineR for the R community - Reg
###Dear R users
###I have been using SensoMineR package from CRAN for most of my work in
sensory data analysis and from my usage experience, I encountered some
areas for improvement and considered ###modifying the function in
SensoMineR package for my personal use. I felt that it could be useful to
share this to the community for enabling adoption by other users where
they might require a
2003 Sep 12
1
save object interactively
Hello, it wanted to know as I can keep to save a object of R in interactive
form, in which I can put the name of the file in a window of I talk, and
not to have to create it, a badly serious example:
x<-c(1,2,3,4)
> nbre<-"x.Rdata"
> f<-file.choose()
Error in file.choose() : file choice cancelled
> f
Error: Object "f" not found
> file.create(nbre)
[1]
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
2001 Jun 12
1
cophenetic matrix
Hello,
I analyse some free-sorting data so I use hierarchical
clustering.
I want to compare my proximity matrix with the tree
representation to evalute the fitting. (stress, cophenetic correlation
(pearson's correlation)...)
"The cophenetic similarity of two objects a and b is defined as the
similarity level at wich objects a and b become members of the same
cluster during the course of
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
2003 Oct 01
0
curious error with tkcheckbutton
Hello, the following code produces an error when executing it, it is a code
that produces 6 checkbutton that at
the beginning are empty, when selecting the first checkbox he says that
doesn't know the second
variable tcl, he say:
[1] "1"
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class
= "tclObj") :
[tcl] can't
2003 Oct 09
0
curious mistake in tkradiobutton
Hello, the following code produces an error when executing it, it is a code
that produces 6 checkbutton that at
the beginning are empty, when selecting the first checkbox he says that
doesn't know the second
variable tcl, he say:
[1] "1"
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class
= "tclObj") :
[tcl] can't
2007 Aug 13
0
2 commits - libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h
libswfdec/swfdec_sprite_movie.c | 60 ---------------
libswfdec/swfdec_tag.c | 152 +++++++++++++++++++++++++++++++---------
libswfdec/swfdec_tag.h | 5 +
3 files changed, 128 insertions(+), 89 deletions(-)
New commits:
diff-tree 37ed222d6ea5305df2c238122be4e31a98af3229 (from 9d35a0a007492163043bf609bf2759a05738c8df)
Author: Benjamin Otte <otte at gnome.org>
Date: