tcl Questions

7

Hello i have this error when i run curl from tcl error: curl: /usr/local/lib/libcurl.so.4: no version information available (required by curl) curl --version curl 7.40.0 (x86_64-unknown-linux-g...
Tuber asked 3/5, 2015 at 17:59

3

Solved

If I run this code via IDLE or a virtual environment in pycharm on both windows 10 and 7: import tkinter as tk from tkinter import ttk x = tk.Tk() y = ttk.Treeview(x) y.insert('',0,values=['red',...
Candescent asked 16/6, 2019 at 5:19

2

Solved

In one executable TCL script I'm defining a variable that I'd like to import in another executable TCL script. In Python one can make a combined library and executable by using the following idiom ...
tcl
Bournemouth asked 17/4, 2018 at 8:54

6

Is there a way to split strings and save in a list ? How to split string and save in two list For example, I have a string where I split several string with =: a=1 b=2 c=3 d=4 and then I want t...
tcl
Rockett asked 28/10, 2013 at 5:46

2

Solved

I am trying to use curly-braces to define a string { } instead of double-quotes " ", so that I don't have to escape several characters (such as $, [, ]). However, I am running into some problems w...
Irrecusable asked 20/7, 2015 at 21:29

2

Solved

Right now I'm calling an external bash script via open, because said script might run for seconds or it might run for minutes. The only things that are certain are: It will output text which has ...
tcl
Mb asked 10/1, 2019 at 10:17

9

I just installed graphics.py for python. But when I tried to run the following code: from graphics import * def main(): win = GraphWin("My Circle", 100, 100) c = Circle(Point(50,50), 10) c....
Hersch asked 14/5, 2012 at 2:30

3

In the following, the buttons labelled 'ONE', 'TWO', and 'THR' do not get evenly spaced out. It seems to me that the root of the problem is that Tk is assuming a default minimum width for any colum...
Retarded asked 9/1, 2014 at 0:7

1

Connecting Excel with 'ABC' throught Excel works, connecting R with Excel by DDE works also, but how to connect R with 'ABC' application ? I have application providing DDE interface, from Excel I ...
Tui asked 9/9, 2018 at 16:24

8

Solved

Working with TCL and I'd like to implement something like the Strategy Pattern. I want to pass in the "strategy" for printing output in a TCL function, so I can easily switch between printing to th...
Soapstone asked 31/10, 2008 at 13:19

3

Solved

How do you ceck if a variable is empty ? It could contain a "\n" or spaces. I am currently doing this if {{string trimleft $var} != ""} { # the variable is not empty puts $var } However the ...
tcl
Blithe asked 12/12, 2014 at 22:27

1

I have a simple Tcl script that creates a window with a menu. #! /usr/bin/tclsh package require Tk # Create the main message window message .m -text {Hello Tcl!} -background white pack .m -expand ...
Churn asked 27/3, 2014 at 15:43

6

I want to redirect the output of 1 command to a variable, where the OUTPUT is usually to STDOUT. I am running an EDA tool, which has tcl interpeter & it's own commands. Let's say that the tool ...
Burns asked 6/10, 2010 at 19:14

3

Solved

I am able to open a spawned telnet session in a shell script to run some commands. Afterwards, I am trying to send the escape character using send (see syntax below) but it never gets to the part w...
Prase asked 16/10, 2013 at 18:55

8

Solved

I have installed ActiveTcl8.6.1.1.297588-macosx10.5-i386-x86_64-threaded on my OS X 10.9.1 . However, when I launch IDLE by running idle3 from the terminal, the following warning shows in the IDLE ...
Valise asked 15/1, 2014 at 5:4

10

Solved

I want to do a tail -F on a file until matching a pattern. I found a way using awk, but IMHO my command is not really clean. The problem is that I need to do it in only one line, because of some li...
Memoirs asked 17/2, 2011 at 2:6

0

I am trying to query and display utf-8 encoded characters in a gui built on tkinter and thus tcl. However, I have found that tkinter cannot display 4-byte characters i.e. unicode codepoints greater...
Logos asked 17/1, 2018 at 21:17

1

Solved

This question is about understanding the behaviour of a specific regex in TCL 8.5 built into Vivado, in particular or-ing together two regex parts I get unexpected results: I worked on indenting a...
Strophanthus asked 27/12, 2017 at 16:27

5

Solved

I am using the following syntax to copy a public key to a host, in order to be able to log in afterwards to the host without password query: ssh-copy-id $hostname in which $hostname is the hos...
Dream asked 16/10, 2013 at 12:25

1

Does Tkinter support 16bit range characters, because I can not print emojis in the gui, when printing in python terminal, it works fine >> print("😊") >> 😊 but in tkinter, it shows ...
Moist asked 17/12, 2017 at 13:46

4

Solved

I'm learning Tcl/Tk and am confused on the usage of curly braces in tcl. To me it seems to be used to both indicate scope and declare strings! Is this a bug (or feature)? Is my interpretation co...
tcl
Jonejonell asked 3/2, 2010 at 16:47

3

Solved

Tcl 8.4 In my Tcl script: set foo1 false set foo2 "yes" set foo3 [list item1 item2 item3] There's a API to get scalars like foo1 or foo2. Eg: Tcl_GetVar(tcl_interp, string("foo1").c_str(), flag...
Glazier asked 31/5, 2012 at 10:57

3

Solved

What is the proper way to initialize an empty array in Tcl? I have the following code (simplified): proc parseFile {filename results_array} { upvar $results_array results set results(key) $valu...
Campaign asked 28/7, 2010 at 4:56

11

I am very new for TCL. Just I want to know that how to write TCL procedures without argument and how to call and how to execute it.
tcl
Conviction asked 14/3, 2011 at 10:57

5

I am new to Tcl/Tk, I am using Vim to code and browsing. The syntax highlighting for Tcl/Tk is working fine. The jump into the function using Ctrl] doesnt work it gives me an message saying that "c...
Jezebel asked 18/6, 2012 at 7:34

© 2022 - 2024 — McMap. All rights reserved.