homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients martin.panter, serhiy.storchaka
Date 2015年06月08日.13:22:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433769737.94.0.512429608997.issue24408@psf.upfronthosting.co.za>
In-reply-to
Content
>>> import tkinter, tkinter.font
>>> tk = tkinter.Tk()
>>> tkinter.font.nametofont("TkHeadingFont").measure("string")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/proj/python/cpython/Lib/tkinter/font.py", line 154, in measure
 return self._root.tk.getint(self._call("font", "measure", self.name, *args))
AttributeError: 'Font' object has no attribute '_root'
This appears to be broken by revision cb80dd82d3da, Issue 23880, which included this change at the end of the measure() method:
-return int(self._call("font", "measure", self.name, *args))
+return self._root.tk.getint(self._call("font", "measure", self.name, *args))
The Font class does not have a "_root" attribute.
History
Date User Action Args
2015年06月08日 13:22:17martin.pantersetrecipients: + martin.panter, serhiy.storchaka
2015年06月08日 13:22:17martin.pantersetmessageid: <1433769737.94.0.512429608997.issue24408@psf.upfronthosting.co.za>
2015年06月08日 13:22:17martin.panterlinkissue24408 messages
2015年06月08日 13:22:17martin.pantercreate

AltStyle によって変換されたページ (->オリジナル) /