[issue35728] Tkinter font nametofont requires default root

2021-07-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The code I gave above now exits with a clearer message. RuntimeError: No master specified and tkinter is configured to not support default root But now, in 3.10, the master can be specified, so that fnt = font.nametofont('TkFixedFont', root) works. Thank y

[issue35728] Tkinter font nametofont requires default root

2021-07-23 Thread Leonardo Freua
Leonardo Freua added the comment: Has the PR already solved the problem? If yes, could this issue not be closed? -- nosy: +Leonardofreua ___ Python tracker ___ ___

[issue35728] Tkinter font nametofont requires default root

2020-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 36a779e64c580519550aa6478c5aa8c58b8fa7b6 by Desmond Cheong in branch 'master': bpo-35728: Add root parameter to tkinter.font.nametofont() (GH-23885) https://github.com/python/cpython/commit/36a779e64c580519550aa6478c5aa8c58b8fa7b6 --

[issue35728] Tkinter font nametofont requires default root

2020-12-21 Thread Desmond Cheong
Change by Desmond Cheong : -- keywords: +patch nosy: +desmondcheongzx nosy_count: 2.0 -> 3.0 pull_requests: +22744 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/23885 ___ Python tracker

[issue35728] Tkinter font nametofont requires default root

2020-12-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list maili

[issue35728] Tkinter font nametofont requires default root

2019-01-12 Thread Terry J. Reedy
New submission from Terry J. Reedy : font.Font.__init__, font.families, and font.names have a 'root=None' argument and start with if not root: root = tkinter._default_root But font.nametofont does not, and so it calls Font without passing a root argument: return Font(name=nam