tcl Questions

2

the issue: running Python's matplotib from a Windows virtual environment as reported & discussed Github ticket 93 and a relevant suggested fix here. Code (myp.py): import matplotlib.pyplot a...
Ashmore asked 19/2, 2016 at 19:30

6

Solved

Say I have a string like this: set str "AAA B C DFG 142 56" Now I want to get a list as follows: {AAA B C DFG 142 56} For that I want to use split function, but in that case I get some extra ...
Danley asked 20/4, 2011 at 10:8

6

Solved

Python embeddable zip comes without pip and Tkinter. It is easy to install pip with get-pip.py in the embeddable zip. How can we install Tkinter too (assuming we do not have an existing Python ins...
Subservience asked 8/6, 2016 at 18:29

4

Solved

I'm trying to port some code over from a Solaris box onto a Linux (specifically Redhat) box. Code compiled without issues and ran without issues on the Solaris box. However, in recompiling on Linu...
Noon asked 12/3, 2013 at 14:44

4

Solved

In tcl how does one find out the path of the package loaded? % tclsh % package require csv I want to find out the path from which csv was loaded. In python, one can find the path of a module u...
Perloff asked 30/5, 2012 at 16:4

4

Solved

How does one list values in multiple lines without a backslash at the end of each line? One can't create a list in multiple lines without having a backslash at the end. For example, the following ...
tcl
Tact asked 25/3, 2014 at 8:37

8

Solved

I have a main TCL proc that sources tons of other tcl procs in other folders and subsequent subdirectories. For example, in the main proc it has: source $basepath/folderA/1A.tcl source $basepath/f...
tcl
Turnery asked 9/1, 2009 at 19:34

4

Solved

I have a TCL script that has many parameters defined as arguments. I intend to create a job file where I can execute the .tcl script with different combinations of the parameters without manual int...
Bollix asked 24/6, 2014 at 0:1

4

Solved

In Python tkinter module, <Button-1>, <Button-2> and <Button-3> are used to identify mouse button clicks for left, middle and right buttons respectively. Likewise, <KeyPress-R...
Carbazole asked 29/8, 2015 at 18:0

4

Solved

I have two lists that contain some data (numeric data or/and strings)? How do I join these two lists, assuming that the lists do not contain sublists? Which choice is preferred and why? set fir...
tcl
Ludhiana asked 13/7, 2013 at 14:49

1

Solved

It was brought to my attention that you can't restrict the view with e.g. scrollregion = (0,0,0,0) and the question was why is that ? Since the official documentation would indicate that this shoul...
Mccray asked 5/12, 2022 at 2:39

4

Solved

What is the recommended way of concatenation of strings?
Centigrade asked 6/5, 2011 at 8:2

1

Solved

I recently started to use tkwait casually and noticed that some functionality only works under special conditions. For example: import tkinter as tk def w(seconds): dummy = tk.Toplevel(root) dum...
Lumberyard asked 9/11, 2022 at 6:57

2

I want to implement GUI using threading and tkinter (python 3.6). When I run GUIExecution.py, the following error occurs. "RuntimeError: Calling Tcl from different appartment" on self.root.mainlo...
Cucumber asked 21/8, 2017 at 14:3

5

Solved

i have troubles to compile Tcl/Tk with Visual Studio 2017 (15.5.x). I can compile the code from 2010 to 2013. I get the folowing error when compiling the tkStubLib.c file with msvc 2017 C:\Progra...
Cooperative asked 1/2, 2018 at 9:28

8

how can I redirect a proc output into a file in tcl, for example, I have a proc foo, and would like to redirect the foo output into a file bar. But got this result % proc foo {} { puts "hello worl...
Prattle asked 16/12, 2011 at 7:21

2

I would like to print either crossmark (✕) or right (check) symbol (✓) in TCL either using echo or puts. Is there anyway to do it?
tcl
Semipro asked 4/8, 2016 at 7:3

5

Solved

This is my first post StackOverflow, I will try to make it as correct and complete as possible if you have any tips to improve my post I will gladly accept it. I'm having trouble running code writ...
Wien asked 30/1, 2020 at 14:3

4

Solved

I need to round a number to two decimal places. Right now the following rounds to the nearest integer I guess puts [expr {round($total_rate)}] If I do something like below it does not work. Is t...
Annam asked 18/4, 2012 at 15:2

7

Solved

How te remove an element from TCL list say: which has index = 4 which has value = "aa" I have Googled and have not found any built-in function yet.
Engage asked 18/4, 2011 at 11:6

5

Solved

I work with linux on a servies. And I don't have the root privilege. I installed the python-3.2.3 locally to "/home/sam/install_sam". when I import the tkinter module. I get the following error: I...
Arthropod asked 14/8, 2012 at 8:13

6

Solved

let's say I opened a file, then parsed it into lines. Then I use a loop: foreach line $lines {} inside the loop, for some lines, I want to replace them inside the file with different lines. Is i...
Argentous asked 12/5, 2010 at 11:3

3

Solved

How can be find the location of procedure (function) in TCL. Under location I mean the source file in which it is declared. I'm trying to read foreign source-code and can not find the declaration ...
Navigation asked 29/9, 2012 at 9:28

2

Solved

Basically, I have a string that consists of multiple, space-separated words. The thing is, however, that there can be multiple spaces instead of just one separating the words. This is why [split] d...
Pluri asked 14/11, 2012 at 14:38

3

Solved

Can get the command history by using cursor key (like up arrow key) in TCL shell (tclsh). I am running tclsh on fedora with linux version 2.6.21.
Detent asked 14/6, 2010 at 23:3

© 2022 - 2024 — McMap. All rights reserved.