Sujet : Re: are canvas coordinates limited to 32k
De : et99 (at) *nospam* rocketship1.me (et99)
Groupes : comp.lang.tclDate : 15. Apr 2025, 02:36:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vtkd77$2hcc5$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
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.
My workaround is to simply limit the rows shown to a max of 500. The really cool stuff is to display the csv's first row as checkboxes so the user can select which columns to cut on the output. That's better than the user having to construct a python csvkit/csvcut command line with the column labels or numbers by hand.
The actual display of the data was just some added sugar to "show off" tcl/tk. Had I also been able to just do [frame .container -scrollable both] I would have been doing victory laps :)
Eric
On 4/14/2025 5:54 AM, Olivier wrote:
et99 <et99@rocketship1.me> posted:
Virtuallist should be a good candidate with 2**30 elements displayed as a breeze
https://wiki.tcl-lang.org/page/Virtuallist
It is based on a canvas and display only a part of the elements according to request.
the Hugelist is maybe better formatted to what you need ?
Olivier.
I've been experimenting with placing widgets inside a canvas. When I tried to test it's performance on lots of widgets (in a column) I am seeing the last few widgets not being displayed when the code does
>
[winfo reqheight $content]
>
where content is a frame and the value returned is over 32768 (actually starts failing just shy of that value).
>
This naturally leads me to suspect there's a 16 bit issue here.
>
I'm testing on windows 10, with 8.6 and 9.0 and get the same results.
>
>