Displaying 20 results from an estimated 500 matches similar to: "tcltk: Difficulties creating menus"
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
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 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")
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,
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 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
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 <-
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
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)
2003 Mar 06
1
tkexit
Sorry, my question is if exists a command tkexit in R, i need a command how
exit of tcl for close an aplication. How to use him. Thank
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
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
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
2010 Dec 01
1
Prawn : undefined method `make_table'
require ''prawn''
require ''prawn/core''
require ''prawn/layout''
Prawn::Document.new do |pdf|
subtable = pdf.make_table([[ "foo", "bar" ], [ "baz", "bax" ]],
:column_widths => [ 50, 50 ]) {
column(0).background_color = "808080"
cells.borders = []
2007 Nov 02
0
5 commits - libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
libswfdec/swfdec_text_field.c | 2 +-
libswfdec/swfdec_text_field_movie.c | 9 ++-------
libswfdec/swfdec_text_field_movie_as.c | 29 +++++++++++++++++++++--------
libswfdec/swfdec_xml.c | 16 ++++++++++++++++
libswfdec/swfdec_xml_node.c | 17 ++++++++++++++---
5 files changed, 54 insertions(+), 19 deletions(-)
New commits:
commit
2007 Oct 23
0
9 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_style_sheet.c libswfdec/swfdec_style_sheet.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h
libswfdec/swfdec_as_strings.c | 2 +
libswfdec/swfdec_html_parser.c | 41 ++++++++++++++++++++---
libswfdec/swfdec_style_sheet.c | 47 +++++++++++++++++++++++++++
libswfdec/swfdec_style_sheet.h | 6 +++
libswfdec/swfdec_text_field_movie.c | 24 +++++++++++--
libswfdec/swfdec_text_field_movie.h | 2 +
libswfdec/swfdec_text_field_movie_as.c |
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
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
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
libswfdec/swfdec_as_strings.c | 8 +
libswfdec/swfdec_codec_audio.c | 1
libswfdec/swfdec_codec_video.c | 1
libswfdec/swfdec_text_field.c | 74 +++++----
libswfdec/swfdec_text_field.h | 5
libswfdec/swfdec_text_field_movie.c | 140 +++++++++++++++---
libswfdec/swfdec_text_field_movie.h | 26 ---