tablelist itemtodict

Liste des GroupesRevenir à cl tcl 
Sujet : tablelist itemtodict
De : manfred (at) *nospam* antispam.at (Manfred Stelzhammer)
Groupes : comp.lang.tcl
Date : 08. Oct 2024, 17:21:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <ve3m5v$2865q$1@dont-email.me>
User-Agent : Mozilla Thunderbird
Hi
I have a small script.
##
set ::nix {{nix0 5 p-4 o0} {nix11 6 p-3 o2}}
::tablelist::tablelist .tbl -listvariable ::nix\
-columns "0 col1 left 0 col2 right 0 col3 center 0 col4 center"
.tbl columnconfigure 0 -name col0
.tbl columnconfigure 1 -name col1
.tbl columnconfigure 2 -name col2
.tbl columnconfigure 3 -name col3
pack .tbl
puts "itemtodict : [.tbl itemtodict 0]"
##
the puts command show me: % itemtodict : col0 0 col1 {} col2 {} col3 {}
I expected that I get "col0 nix0 col1 5 col2 p-4 col3 o0".
I'll get all values from a row with columnname like a dict.
What do I wrong or I don't understand?
regards
Manfred

Date Sujet#  Auteur
8 Oct 24 * tablelist itemtodict8Manfred Stelzhammer
8 Oct 24 `* Re: tablelist itemtodict7Ralf Fassel
8 Oct 24  `* Re: tablelist itemtodict6Manfred Stelzhammer
9 Oct 24   +- Re: tablelist itemtodict1Ralf Fassel
9 Oct 24   `* Re: tablelist itemtodict4nemethi
9 Oct 24    `* Re: tablelist itemtodict3nemethi
9 Oct 24     `* Re: tablelist itemtodict2Ralf Fassel
10 Oct 24      `- Re: tablelist itemtodict1Manfred Stelzhammer

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal