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
0 answers
create beam elements and shell elements in hypermesh using TCL/tk scripts
I would like to create connector elements (1D- Beam elements) and 2D shell elements between two set of nodes which forms the edges of the two plates. How can I create this using TCL/TK in hypermesh.
I would like to select node sets only once and…

vetri
- 11
- 3
0
votes
1 answer
Is there a way to specify tcltk version within R?
I was asked if I could "fix" the R script that was created in version 3.2.2 that ceased to work in version 4.2.2.
The script turned out to be Tcl/tk interface using tcltk package. The script starts with tclRequire("BWidget") and…

aiorr
- 547
- 4
- 11
0
votes
1 answer
Change Tcl/Tk label text & colour depending on radiobutton selection?
I'd like to change the text & colour of text of my label depending on radiobutton choice.
So far I have this code;
label $f0a.lbOPTION -text "Watts / FTP%" -font {Arial 10 bold} -bg white -fg #d000d0
radiobutton $f0a.rb00 -text "Watt" -var…

KevP
- 1
- 2
0
votes
0 answers
tcl tk: set the position button
I am using tcltk2 library to show buttons and messages. Everything work fine but I would like set the tk2button to the right of my screen, by default it display at the left of my screen.
library(tcltk2)
win1 <- tktoplevel()
butOK <-…

Rodrigo_BC
- 161
- 11
0
votes
0 answers
Floating point addition/subtraction in tcl/python
I am trying to perform subtraction of the numbers
in tcl or python:
expr { 202.2246-0.42} = 201.80460000000002
ideally the answer should be 201.8046
One way to solve it would be to convert it to integer and do the subtraction and convert it back…

kil47
- 53
- 1
- 9
0
votes
1 answer
set tcl a variable from gui
I want to get file name from gui. I wrote a code like below.
I am able to run all the scripts for once time. what i am looking for when i select the file form hwtk::openfileentry, i want to set a variable for the filename.
After i selected the file,…

Seçkin Uslu
- 35
- 5
0
votes
0 answers
R custom GUI disappears shortly after launch in batch mode
I'm testing the use of custom GUI to get user feedback before performing tasks in R and doing the latter via a batch script. The following code was adapted from another post on SO. After the R function executes, the custom GUI appears for a few…

user2566907
- 99
- 10
0
votes
1 answer
How to add and remove individual tkk.Treeview tags using "addtag" and "dtag"?
I have been trying to add and remove individual tags from items in a ttk.Treeview (tkinter).
I have seen references to addtag and dtag (dtag deletes specified tags leaving unspecified remaining)
but the only examples I can find are related to canvas…

Edward
- 49
- 2
- 5
0
votes
1 answer
Writing file in Tcl gives extra line
I am wondering from where newline (4th in example code) is written out from following very simple tcl code. Handling from puts -nonewline is cumbersome. Is there any other tcl command influence this behavior?
set fid [open testout.txt w]
puts $fid…

OliveOne
- 238
- 1
- 6
- 23
0
votes
0 answers
How to auto-size toplevel TCL/TL form to match different height notebook tabs
I have a TCL/TL form with 3 Notebook tabs. Each tab has very different layouts and therefore needed heights. How do I get the toplevel form height to only be what is needed for each tab? I have looked at "wm geometry" and ttk::style, probably…
0
votes
0 answers
What Xresources reference will control tk_chooseDirectory background? Non-responsive to specifications
I have tried many different .Xresources definitions to control the background colour for the box which displays directories and files in the tk_chooseDirectory widget, without success.
I was hoping to locate the source code for tk_chooseDirectory,…

Eric Marceau
- 1,601
- 1
- 8
- 11
0
votes
0 answers
Display message to terminal with freewrap for tcltk?
I am using freewrap to package a program into a single file. It seems freewrap has two options freewrap and freewrapTCLSH. Since freewrapTCLSH was created for a command line tool in mind it displays any puts "some text" to the terminal. However,…

nikost
- 788
- 6
- 14
0
votes
2 answers
How to pass command line arguments to script instead of shell
I have a tcl/tk script that I run through wish. However, I noticed certain command line arguments are passed to wish instead of my script. For example, if I type ./script -h I get the wish help output instead of my scripts help output.
The following…

nikost
- 788
- 6
- 14
0
votes
0 answers
Emacs and R - Emacs closes when using tk_choose.dir
I'm using R scripts inside Emacs on Windows 10 Enterprise to analyze data. It works well but recently after sending a tk_choose.dir command, emacs closes (but not R ; the script keeps on running after choosing the folder).
If someone can tell me the…

Newb'R
- 61
- 2
0
votes
0 answers
Login to mobaxterm SSH through TCL/tk scripting
I tried to login to SSH from the tcl/tk gui. I have the following code in tcl/tk,
button $a.b1 -text "Connect-Check" -command \
{exec "C:/Program Files (x86)/Mobatek/MobaXterm/MobaXterm.exe" "$dir/connect-check.ttl"}
commands inside the…

vetri
- 11
- 3