Sujet : Re: are canvas coordinates limited to 32k
De : et99 (at) *nospam* rocketship1.me (et99)
Groupes : comp.lang.tclDate : 19. Apr 2025, 05:51:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vtva5i$mngb$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 4/15/2025 11:52 PM, Christian Gollwitzer wrote:
Am 15.04.25 um 03:36 schrieb et99:
Thanks for the suggestions. The purpose of my "little" project was to demonstrate that TCL/Tk was the best tool in a particular environment. The user needed a tool to do a csv column cut operation on a csv formatted text file, as an extension to a commercial text editor he was using.
>
If I had to do it, I'd use tablelist. I've yet to find a use-case where you can't simply set an option to it to do what you want.
Christian
Thanks for that. I had a look at tablelist.
I was quite impressed that I could change a demo to display over 50,000 lines and it didn't have the problem that examples using canvas had. I looked at the widget tree and found it was using a text widget for the container.
My goal was to demo only using the core set of tk widgets. That's why I didn't want to rely on any packages. I wanted scrollable frames, so I snagged 80 lines of wiki code.
But in the end I was able to create a spreadsheet like layout of modifiable cells, with just two small nested foreach loops of grid'd entry's, plus some csv split and reconstruct functions that I got the google gemini AI bot to write for me.
Since the csv data comes in via stdin, I was able to demo: [split [read -nonewline stdin] \n] which is a nice tcl thing.
Did I succeed? Only time will tell.