8,171 questions
0
votes
1
answer
89
views
How to check for completeness of a tcl proc/command?
Provided a sample proc and the arguments it expects in a dedicated tcl file,the intention is to find the complete command string for the proc amongst other tcl code snippets.
e.g.:
Given a sample proc ...
Advice
0
votes
6
replies
89
views
asynchronously download http webpages in tcl
I am very new to TCL and I am trying to write a simple tcl program where it can fetch 2 or more webpages asynchronously. The code is attached here, please help me write a working program.
package ...
0
votes
1
answer
153
views
Why should I set the parent of a widget to the canvas when placing it as window item?
Why does the "tk-toolkit" treat the window item differently when the parent is not canvas?
When distributing events for example:
import tkinter as tk
def enter_event(event):
print(f'...
2
votes
2
answers
152
views
Python Tkinter "tag mechanism" broken - _tkinter.TclError: invalid boolean operator in tag search expression
The following [mre]:
import tkinter as tk
root = tk.Tk()
cnvs = tk.Canvas(root)
cnvs.pack()
labl = tk.Label(cnvs, text='hello world')
laid = cnvs.create_window(0,0,window=labl,anchor='nw', tags=str(...
0
votes
1
answer
52
views
Corrupted output using CECP (XBoard/WinBoard) using tcl
I made a Tcl script which dialogs with a chess engine (using CECP also known as XBoard or WinBoard protocol), to obtain an analysis of a chess game. It seems to work correctly at the beginning but ...
0
votes
0
answers
39
views
Error compiling Tk: tcl90ts.lib not found
I have already tried compiling Tcl normally and with the -ts option, but it does not generate tcl90ts.lib, which seems to be required for Tk. My full logs are too long, they are at https://pastebin....
1
vote
2
answers
166
views
Decompressing and unpacking .tar.gz archive using Tcl 9.0
I have the following (working) shell command:
tar -x --directory "$inner" --strip-components 1 <"$inner.tar.gz"
It's part of a shell script I'm translating to Tcl. I can use ...
Best practices
0
votes
4
replies
48
views
mapi-Interface for Windows
I want to create an new email on windows using the local installed mail-client.
After some research i found "https://www.schwartzcomputer.com/tcl-tk/tcl-tk.html#MAPIMail" But this seems to ...
0
votes
2
answers
74
views
Created TEA architecture for fftw package, now TCL stubs library initialisation failure
I can configure, compile and run this tclfftw package (https://gitlab.com/teclabtcltk/tclfftw) unless I enable TCL stubs.
Environment: Windows msys2 mingw64 Tcl86
As a workaround I had to do some ...
Tooling
1
vote
2
replies
48
views
tcl tk: add command with multiline label
I created a menubar with several menubuttons in tcl/tk. Then I wanted to add several commands. The text ist normally short enough for one line, but there is one text which is longer. Is there any way, ...
Best practices
0
votes
4
replies
83
views
Using the equivalent of an include in an iRule
I have a rather large iRule with multiple events. There are some configuration variables that I set in the CLIENT_ACCEPTED event.
The issue is, I need to apply this irule to multiple vips in multiple ...
-1
votes
2
answers
71
views
Nested dictionary, for yaml style markup
I couldn't figure out the way to process nested leafs/branches/parents, not sure what the actual best terminology is.
I've got the reading of the data happening correctly, far as i can tell.
Its in ...
0
votes
1
answer
120
views
String created for 'exec' works on command line, but not in 'exec'
I try to write sort of a 'file watcher' that regularly processes all new files in a directory since last run. I started it with the use of CoPilot and it comes up with the very handy dos-command '...
1
vote
1
answer
100
views
How to make nested class event communication in Tkinter
I run into a problem with tkinter events. I tried to create event in class and call it from nested class. Event generates only on nested class level. Is there any way to generate event globally, or I ...
1
vote
1
answer
106
views
Get a Tk widget's associated CGContext
I've been working on a Tk widget that uses Cairo for more complex drawings as an extension to the standard Tk functions.
I've had great success on Windows and Linux, but not so much on MacOS. I need ...