Re: evaluation question

2023-02-06 Thread Rob Cliffe via Python-list
On 02/02/2023 09:31, mutt...@dastardlyhq.com wrote: On Wed, 1 Feb 2023 18:28:04 +0100 "Peter J. Holzer" wrote: --b2nljkb3mdefsdhx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-02-01 09:00:39 -, mutt...@dastardly

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-06 Thread stefalem
I apologize for the 3 messages sent, I could not access the usual news server and with Google Groups I messed up :) -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-06 Thread stefalem
> Is there another way to do what I want? try this: from tkinter import * from tkinter.ttk import * root = Tk() t = Treeview(root) t.insert('', 0, iid='item1', text='item1') t.insert('', 1, text='item2') t.tag_configure('flashtag', background='red') t.pack() def flash(): tags = t.item('ite

Re: tkinter ttk.Treeview: changing background colour of single item when selected

2023-02-06 Thread stefalem
Il giorno sabato 4 febbraio 2023 alle 11:43:29 UTC+1 John O'Hagan ha scritto: ... > Is there another way to do what I want? from tkinter import * from tkinter.ttk import * root = Tk() t = Treeview(root) t.insert('', 0, iid='item1', text='item1') t.insert('', 1, text='item2') t.tag_configure('f

Re: Typing Number, PyCharm

2023-02-06 Thread Weatherby,Gerard
Yeah, I’m confused. “The Decimal Type After consultation with its authors it has been decided that the Decimal type should not at this time be made part of the numeric tower.” https://peps.python.org/pep-3141/#the-decimal-type And the Decimal

Re: Typing Number, PyCharm

2023-02-06 Thread Paul Bryan
On Mon, 2023-02-06 at 12:11 +, Weatherby,Gerard wrote: > On the one hand, it is a well-known type, so it should be > recognizable to users of an API. On the other hand, Number is > entirely abstract, so it doesn’t provide useful type checking for the > implementation; I had to add # noinspecti

Re: Typing Number, PyCharm

2023-02-06 Thread Weatherby,Gerard
“is numbers.Number the preferred type-hint when multiple numeric types are to be accepted?” I don’t know. On the one hand, it is a well-known type, so it should be recognizable to users of an API. On the other hand, Number is entirely abstract, so it doesn’t provide useful type checking for th