The following measure
method is defined in class Font
of module /usr/lib/python3.5/tkinter/font
or import tkinter.font
:
def measure(self, text, displayof=None):
"Return text width"
args = (text,)
if displayof:
args = ('-displayof', displayof, text)
return self._tk.getint(self._call("font", "measure", self.name, *args))
Questions:
- What is
displayof
? - When and how do I use
displayof
?