[issue41851] tkinter: add font neg and equal methods

2020-09-26 Thread Tal Einat
Tal Einat added the comment: As for an equal() method, I think that adding equal() which is different than the existing __eq__() would be a source of confusion. I also think using it wouldn't add anything, and would be less clear, compared to font1.actual() == font2.actual(). I'm

[issue41851] tkinter: add font neg and equal methods

2020-09-26 Thread Tal Einat
Tal Einat added the comment: Why would negating the font size convert it from points to pixels?? It seems to be coming straight from Tk; is this documented anywhere? I'd greatly prefer that we use a properly named property instead, e.g. .pixel_size. -- nosy: +taleinat

[issue41851] tkinter: add font neg and equal methods

2020-09-24 Thread E. Paine
New submission from E. Paine : I think it would be helpful to add these methods to the tkinter font class. Starting with the equal method, I have found it very useful to be able to compare tkinter fonts based on their value rather than just name. I used this, for example, in #28694 to ensure

[issue41851] tkinter: add font neg and equal methods

2020-09-24 Thread E. Paine
Change by E. Paine : -- keywords: +patch pull_requests: +21436 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22396 ___ Python tracker ___