Return text width
(self, text, displayof=None)
| 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. |