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

Function newText

Lib/pagebot/elements/__init__.py:129–134  ·  view source on GitHub ↗

Creates a Text element. If w and h are not defined, then the Text is and elastic rectangle, base on the size of the content. If w is defined, then the Text element has regular “Text” behavior.

(bs='', **kwargs)

Source from the content-addressed store, hash-verified

127 return Column(**kwargs)
128
129def newText(bs='', **kwargs):
130 """Creates a Text element. If w and h are not defined, then the Text is and
131 elastic rectangle, base on the size of the content. If w is defined, then
132 the Text element has regular “Text” behavior.
133 """
134 return Text(bs, **kwargs)
135
136def newRect(**kwargs):
137 """Creates a new Rect element. Note that points can also be defined in the

Callers 2

elementFromPathFunction · 0.85
__init__Method · 0.85

Calls 1

TextClass · 0.90

Tested by

no test coverage detected