MCPcopy Index your code
hub / github.com/RustPython/RustPython / measure

Method measure

Lib/tkinter/font.py:156–161  ·  view source on GitHub ↗

Return text width

(self, text, displayof=None)

Source from the content-addressed store, hash-verified

154 configure = config
155
156 def measure(self, text, displayof=None):
157 "Return text width"
158 args = (text,)
159 if displayof:
160 args = ('-displayof', displayof, text)
161 return self._tk.getint(self._call("font", "measure", self.name, *args))
162
163 def metrics(self, *options, **kw):
164 """Return font metrics.

Callers 1

font.pyFile · 0.80

Calls 2

getintMethod · 0.45
_callMethod · 0.45

Tested by

no test coverage detected