MCPcopy Create free account
hub / github.com/PageBot/PageBot / _set_w

Method _set_w

Lib/pagebot/contexts/basecontext/babelstring.py:188–193  ·  view source on GitHub ↗

Answers the requested width of this string. If None, no width is defined, therefore no wrapping is done and `self.tw` will just answer the original width of the string.

(self, w)

Source from the content-addressed store, hash-verified

186 return self._w # Can be None
187
188 def _set_w(self, w):
189 """Answers the requested width of this string. If None, no width is
190 defined, therefore no wrapping is done and `self.tw` will just answer
191 the original width of the string."""
192 self._w = units(w)
193 self.reset() # Force context wrapping for self.tw to be recalculated.
194
195 w = property(_get_w, _set_w)
196

Callers

nothing calls this directly

Calls 2

resetMethod · 0.95
unitsFunction · 0.90

Tested by

no test coverage detected