Deutsch   English   Français   Italiano  
<100hqmf$27fvo$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Alan Grunwald <nospam.nurdglaw@gmail.com>
Newsgroups: comp.lang.tcl
Subject: Re: Named colours in Tk
Date: Tue, 20 May 2025 12:55:55 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <100hqmf$27fvo$1@dont-email.me>
References: <100fdt4$1l9lq$1@dont-email.me> <100hen2$252qj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 20 May 2025 13:57:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e993c1e49a2083fb3894bf857694e2d2";
	logging-data="2342904"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/RrYvfpLmI+FxlfpN/TpQtsNzQTx4+r4E="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:eYbBm137xAbkaGKpRcwdGOqkJE8=
Content-Language: en-US
In-Reply-To: <100hen2$252qj$1@dont-email.me>

On 20/05/2025 09:32, Harald Oehlmann wrote:
> Am 19.05.2025 um 16:05 schrieb Alan Grunwald:
>> Tk recognises a lot of colour names, as documented at, say, https:// 
>> www.tcl-lang.org/man/tcl9.0/TkCmd/colors.html Is it possible to get a 
>> list of them?
>>
>> I guess I could hack it out of one of the source files, but I'd hope 
>> to be able to get it in a cleaner fashion.
> 
> Alan,
> this is a long awaited low hanging fruit in Tk.
> An "tkinfo colornames" should be implemented.
> 
> I would love to use it in colour chooser dropdown boxes etc.
> 
> Thanks,
> Harald
Thanks Harald,

That indeed is what I hope to use it for. I'm going to parse rgb.txt as 
recommended elsewhere. At times like this, I wish I understood the 
Tcl/Tk internals better; I might have a go at implimenting [tkinfo 
colournames] myself - I'm a Brit, I look forward to the 
colournames/colornames argument :-)