Questions tagged [tcl]
Tool Command Language was invented by John Ousterhout as a way to make it easy to write little languages for configuring EDA tools, but it has grown far beyond those humble beginnings to become a general scripting language with built-in asynchronous I/O and Unicode strings while supporting paradigms such as object-oriented programming and coroutines.
8,061
questions
0
votes
0
answers
26
views
Issues Connecting to Spirent TestCenter Using Java and Tcl
I'm having trouble connecting to Spirent TestCenter (STC) using both Java and Tcl scripts. Here are the steps I've taken and the errors I'm encountering:
Using Java:
I tried running a Java script with ...
0
votes
0
answers
23
views
How do I get the directories of the IP-cores of the Vivado project?
There is a get_ips function, it returns a list of names of all IP-cores of the project. Is there any way to get the directories where the files of these IP-cores are located by some function?
1
vote
1
answer
55
views
Accessing variable name inside proc in tcl
I am trying to create a proc that lists all elements of an array:
Here is the proc:
proc array_values {array_input} {
upvar $array_input arr
foreach name [lsort [array names arr]] {puts "arr($...
0
votes
0
answers
38
views
For loop of bash script not working, reading lthe next lines within the previous loop [duplicate]
I cannot solve the for loop error in bash script.
The bash script is for extracting data from remote server, copying mapped files locally, and then executing a tcl script.
The above process should ...
1
vote
4
answers
115
views
Awk /Sed or TCL script to search series of patterns
I am having one File as stated below
File 1
Module1 (a dd ddd )
jdjd ikdnd kdndn didkdn;
jdjdjl kdkdk kdkd lkd;
Ann {"Load DR"} ;
V { REST_TMS=1 ;
REST_TDI = 0
REST_TCK=1 ;
...
1
vote
0
answers
45
views
Having the same _tkinter.TckError with no solution [closed]
class AutoCompleteEntry(CTkEntry):
def __init__(self, master, suggestions, placeholder=None, **kwargs):
self.var = tk.StringVar()
super().__init__(master, textvariable=self.var, **...
-1
votes
0
answers
32
views
In Tcl 8.6.14 a Window will disappear after exit a Wish App which was startet as a child process
I wrote a Tck/Tk Toolbar program for Windows which allows to start Apps from it.
The ToolBar has Icons/Buttons to Start apps.
The GUI has windows which automatically disappear and only a small colored ...
1
vote
1
answer
51
views
Using tell with a gzip file in TCL
When I use zlib push gunzip, to read a large gzip file line by line, the tell function always returns -1 instead of the current access position. Is there a way to get the access position while ...
0
votes
1
answer
54
views
ttkthemes doesn't theme entire window when applied to root
None of the themes I've tried in ttkthemes will theme the entire window. I apply the theme to the root/self and it will only theme text/buttons
Screenshots:
I was expecting the window to fill the ...
2
votes
0
answers
45
views
TCL and C function binding by SWIG, segfault
I tried to bind interpolation function code from here: https://people.math.sc.edu/Burkardt/c_src/interp/interp.html
to TCL to do fast interpolation for large arrays.
The source code I used is:
interp....
1
vote
1
answer
89
views
Change <br> tag to <?linebreak?> using tcl tdom
I have an input string in html that needs to be parsed and written to DITA compatible XML.
Input:
<p>Line with following newline<br>Line with two following newlines<br><br>Line ...
1
vote
1
answer
31
views
Looking for the equivalent Tcl_FileObjCmd function in tcl 8.6.6
I am trying to move to tcl 8.6 from tcl 8.4. In my project there was an use of function **Tcl_FileObjCmd **however this function is not available tcl 8.6.6. I am not able to find its equivalent to ...
1
vote
1
answer
33
views
TCL is there a way to pattern match a line within while gets statement?
This TCL is supposed to parse a file until it finds a pattern. Then there will be a variable number of some sort of preamble lines that have a different distinct pattern that I want to skip and then ...
1
vote
1
answer
52
views
TCL lrange command creating arrays for things in quotes
I have following simplified code:
set getevent [exec "show running-config | section UPDATESCRIPTS"]
set geteventsplit [split $getevent "\n"]
foreach entry $geteventsplit {
if {[...
1
vote
2
answers
88
views
How to let KP_Down, KP_Up, KP_Next, KP_Prior scroll a `ttk.Treeview` widget like KeyPress-Down, KeyPress-Up, KeyPress-Next, KeyPress-Prior?
I discovered that in tkinter, '<KP_Down>','<KP_Up>', '<KP_Next>', '<KP_Prior>' does not scroll a ttk.Treeview widget as '<KeyPress-Down>', '<KeyPress-Up>', '<...