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

Method button

Lib/pagebot/contexts/htmlcontext/htmlbuilder.py:1878–1884  ·  view source on GitHub ↗

button is the standard XHTML control. It is much like input type="button" but more versatile. It has open and close tags, and can take almost any non-form HTML structure inside.

(self, **args)

Source from the content-addressed store, hash-verified

1876 self._closeTag('optgroup')
1877
1878 def button(self, **args):
1879 """button is the standard XHTML control. It is much like input
1880 type="button" but more versatile. It has open and close tags, and can
1881 take almost any non-form HTML structure inside.
1882 <www href="http://xhtml.com/en/xhtml/reference/button/" target="external"/>
1883 """
1884 self.write_tag('button', True, args)
1885
1886 def _button(self):
1887 self._closeTag('button')

Callers 3

button_Method · 0.95
buildMethod · 0.80
build_htmlMethod · 0.80

Calls 1

write_tagMethod · 0.80

Tested by

no test coverage detected