![]() Issue #24408: Added more tkinter.Font tests. New changeset 7e2a7f3fecdf by Serhiy Storchaka in branch '3.4': Here is a patch that adds more tests (it should be applied to all versions). Unfortunately tests for tkinter.Font are almost not existing. New changeset 0dd70c2c44b4 by Serhiy Storchaka in branch 'default':Īuthor: Serhiy Storchaka (serhiy.storchaka) * Issue #24408: Fixed AttributeError in measure() and metrics() methods of New changeset fb05c1355a90 by Serhiy Storchaka in branch '3.5': The Font class does not have a “_root” attribute. +return self._root.tk.getint(self._call("font", "measure", self.name, *args)) ![]() return int(self._call("font", "measure", self.name, *args)) ![]() This appears to be broken by revision cb80dd82d3da, Issue 23880, which included this change at the end of the measure() method: Return self._root.tk.getint(self._call("font", "measure", self.name, *args))ĪttributeError: 'Font' object has no attribute '_root' > ("TkHeadingFont").measure("string")įile "/home/proj/python/cpython/Lib/ tkinter/font.py", line 154, in measure Martin.panter, ned.deily, python-dev, serhiy.storchakaĬreated on 13:22 by martin.panter, last changed 14:58 by admin.
0 Comments
Leave a Reply. |