The tcltk package is an embedding of Tcl/Tk in R. Use tcl and tk tags for the actual Tcl and Tk software packages themselves.
Questions tagged [tcltk]
74 questions
0
votes
1 answer
Read all files in folder tcl/tk
I want to read all files containing .sdc
The folder includes
alpha.sdc
beta.sdc
gamma.rpt
I try cmd
set a [open "proj/plrs/*.sdc" r]
but it not working

Cuong Le
- 3
- 2
0
votes
2 answers
<> in Tcl/Tk 8.6.11 and on
I have a problem with MenuSelect event in Tcl/Tk 8.6.11 (tried in Linux, Debian 10.7).
In fact, it doesn't fire at all for the main and tearoff-ed menus. Though working fine in Tcl/Tk 8.6.9, and even in 8.6.11 - only while menus are not…

Alex P
- 96
- 1
- 6
0
votes
1 answer
Q: How do I write file.CSV in tcl/tk scripting
I have 3 strings: string1 string2 string3
I want to export file.csv
I try to use
echo "string1,string2,string3" >> file.csv
but its not working

Cuong Le
- 3
- 2
0
votes
1 answer
How to display html page inside tcl/tk window?
When we click on a button, it opens separate tcl/tk window and display some html inside that window with scroll option available.

aman agrawal
- 1
- 2
0
votes
2 answers
get each number in String and Compare in TCL/tk
I have string output:
1 4 2 1 4
I want to get each character in string to compare.
I did it to want to know whether the list is sorted yet.

DONG DAO
- 19
- 3
0
votes
1 answer
Tcl/Tk : Passing variable no. of arguments within tcl code
set newarg [join $argmnts " "]
set msg [exec $fname arguments]
Note : argmnts are not commandline arguments, it is from value_dialog_box
newarg is a list of arguments (no. of arguments may vary in newarg),
fname is some file name.
I want to pass…

Aman Agrawal
- 43
- 6
0
votes
1 answer
How to access all activate tk window IDs (path names) in R console?
Suppose I create several tk windows but do not assign them to any real objects.
library(tcltk)
# two activated tk windows
tcl('toplevel',".foo")
tcl('toplevel',".bar")
Is it possible to access their IDs (or path names) by executing some function…

Zane
- 69
- 8
0
votes
1 answer
R tkinsert does not recognize "\\n"
New example
I'm updating the question after user2554330's comment.
Since I updated my R version, the tkinsert function from package tcltk does not recognize the flag "\n". How can I write different lines?
New example. This is a real example that…

Marina
- 369
- 3
- 9
0
votes
2 answers
Add label text with different color in tcl/tk
label .f -text "Serial Number" -textvariable lbl -font {bold} -background #808080
pack .f
Here, I want Serial with different color than Number with different color.
How to do that?
Also, when I do :
set lbl "Stack Overflow is great"
I want all…

Aman Agrawal
- 43
- 6
0
votes
1 answer
How to convert .tcl file with tcl/tk commands into executables for windows and linux?
Please answer this question in support with links of available software (with appropriate s/w version that can support that) and with clear one-on-one steps.
Sample tcl/tk program to convert into executables :
#!/usr/bin/wish
proc every {ms body}…

Aman Agrawal
- 43
- 6
0
votes
0 answers
How can I use function "tkcmd"?
I am practicing gui in r, and made simplest code here. I made simple layout with text, entry and button, and tried to implement a function that is connected to the button. below is the code i tried. and I got error message on function tkcmd like…

jay
- 99
- 6
0
votes
1 answer
I cannot install the package tcltk in R
I'm trying to install the package Rcmdr however it has a dependency on tcltk2 whom has a dependency on tcltk but I cannot install tcltk.
My status:
> capabilities()["tcltk"]
tcltk
FALSE
What I've…

Felipe Augusto
- 7,733
- 10
- 39
- 73
0
votes
1 answer
Need help installing the UDP package in TCL
My end goal is to have UDP support in TCL on windows, using either ActiveState or some other version of TCL. From what I can see, and read - the UDP package should be installed via "teacup"
Instructions I find are old, out of date, etc. Google is…

user3696153
- 568
- 5
- 15
0
votes
1 answer
Installation of Transcriber (http://trans.sourceforge.net/en/install.php)
I am going around with no success in installing Transcriber in Ubuntu. Way very difficult :s
I follow all the steps the link above, but no way of passing this part of installing first the tcltk - ./configure --enable-gcc --enable-shared…

moinera
- 1
0
votes
1 answer
"open | $filex" couldn't execute existing file on windows only
Below code:
set filex "./run.sh"
if {[file exist $filex]} {
puts "File exist!"
}
if {[catch {open |$filex r} pipe]} {
puts "pwd = [pwd]"
puts "ERROR: $pipe"
}
returns followind message:
File exist!
pwd = F:/
ERROR: couldn't…

J. Doe
- 59
- 8