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