tcl Questions

7

Solved

Using below code i can able to call all procedure in the Proc.tcl file ,but i want to call individually the procs like sum or sub ,Please let me know any other possibility to call it My proc file ...
Cummerbund asked 8/5, 2013 at 11:50

3

I know a recipe for displaying an MxNx3 numpy array as an RGB image via Tkinter, but my recipe makes several copies of the array in the process: a = np.random.randint(low=255, size=(100, 100, 3), ...
Rozier asked 22/9, 2018 at 17:44

4

Solved

I'm writing a utility (which happens to be in python) which is generating output in the form of a TCL script. Given some arbitrary string variable (not unicode) in the python, I want to produce a T...
Loupgarou asked 14/3, 2011 at 17:29

4

Solved

Consider below example: import tkinter as tk root = tk.Tk() root.title("root") other_window = tk.Tk() other_window.title("other_window") root.mainloop() and also see below example that create...
Firebrat asked 31/12, 2017 at 20:12

5

Solved

Sometimes its needed to get current path of a script. What are the ways to do that?
tcl
Emissive asked 25/4, 2014 at 6:9

5

Solved

Do EPP client-side implementations for languages other than Java exist? I am mostly interested in a C or Tcl client implementation, but can also do with Python or Perl.
Onesided asked 10/11, 2011 at 7:25

1

I have just removed my old Python framework using this procedure, and I have installed Python 3.4.3 for my architecture, which appears to be i386 according to the following command uname -p, so I h...
Aberrant asked 3/6, 2015 at 1:12

1

Solved

I'm trying to help the owner of tkdnd generate a wheel and distribute it to Pypi so users could simply install the tkdnd extension with a simple pip install TkinterDnD2. I'm after this 'challange' ...
Eclecticism asked 4/3, 2021 at 9:2

1

Solved

There is an external C++ function that is called from Tcl/Tk and does some stuff in a noticeable amount of time. Tcl caller has to get the result of that function so it waits until it's finished. T...
tcl
Monocyte asked 16/3, 2021 at 13:49

5

Solved

How do I make sure that all my background processes have finished execution before I exit my script (TCL/Bash). I was thinking of writing all my background process pids to a pidfile. And then at t...
Wardrobe asked 10/1, 2013 at 9:3

4

I know that you can "hack" nesting associative arrays in tcl, and I also know that with dictionaries (which I have no experience with) you can nest them pretty easily. I'm trying to find a way to s...
tcl
Otherwhere asked 16/12, 2013 at 22:10

5

Solved

Is it a requirement of good TCL code? What would happen if we don't use the "unset" keyword in a script? Any ill-effects I should know about? I'm inheriting some legacy code and the errors that co...
Contribute asked 25/2, 2010 at 5:42

2

Solved

Why can't I use the left and right arrow keys (actually, the same goes for the up and down keys as well) to move about the line I'm currently on in the tclsh interactive shell? If I try to press ei...
Fibroblast asked 5/3, 2016 at 19:48

3

Solved

I only want to show Chip, but I get both Chip AND Dale. It doesn't seem to matter which 32 bit character I put in, tkinter seems to duplicate them - it's not just chipmunks. I'm thinking that I may...
Dottie asked 3/7, 2020 at 10:42

6

I'm looking for a way to find the type of a variable in Tcl. For example if I have the variable $a and I want to know whether it is an integer. I have been using the following so far: if {[strin...
Inductee asked 15/9, 2011 at 8:36

2

This is not exactly my application, but very similar. I have created this test code to show the problem. Basically I am trying to call tcl proc from python thread. Tcl proc will callback to python ...
Tumbrel asked 4/8, 2016 at 12:27

6

+--------+-----------------------------------+ | OS | Ubuntu 12.04 | +--------+-----------------------------------+ | Python | 2.7, 3.2 and source installed 3.6 | +--------+------------------...
Trover asked 6/3, 2017 at 10:22

4

Solved

I have two tcl scripts. I want to run the second script when the first finished. How can I do it?
tcl
Elenaelenchus asked 14/2, 2012 at 10:13

2

Solved

I'm trying to change the background color of my Tkinter app, but for certain widgets it leaves a white border around the edges. For example, this: from tkinter import * COLOR = "black" root = T...
Marlee asked 1/12, 2010 at 2:38

3

Solved

I want to insert sleep for 30 second in my TCL script. I tried using sleep command. but its not working. could any one of you help on this?
tcl
Complimentary asked 9/8, 2014 at 14:52

1

Solved

TLTR: Getting the following error while trying to display tkinter app on my local laptop (running Pop_OS!) _tkinter.TclError: couldn't connect to display ":0" Hello world, First o...
Carmagnole asked 23/11, 2019 at 10:2

2

I've written one piece of code by using a while loop but it will take too much time to read the file line by line. Can any one help me please? my code : set a [open myfile r] while {[gets $a li...
Engaging asked 30/6, 2015 at 13:5

3

Solved

I have a list in Tcl as: set list1 {0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9} then how could I get the element based on the index of list? for example: I want to get the second element of th...
Henebry asked 2/10, 2013 at 12:12

3

Solved

Say I have a TCL list, and I have append some elements to my list. Now I want to check if I have appended 6 or 7 elements. In order to check if list element exists in the place specified by an ind...
Dinette asked 11/4, 2011 at 6:37

3

Solved

set some_string "Name/is/ComplexSTRUCTUre" convert this string to, some_string = "Name/is/ComplexSTR.CTUre" i.e replacing first "U" to "."
Keesee asked 2/5, 2016 at 13:45

© 2022 - 2024 — McMap. All rights reserved.