MCPcopy Index your code
hub / github.com/rawpython/remi / repr

Method repr

remi/gui.py:1315–1327  ·  view source on GitHub ↗

It is used to automatically represent the object to HTML format packs all the attributes, children and so on. Args: changed_widgets (dict): A dictionary containing a collection of tags that have to be updated. The tag that have to be updated is the key, a

(self, changed_widgets=None)

Source from the content-addressed store, hash-verified

1313 super(HTML, self).__init__(*args, _type='html', **kwargs)
1314
1315 def repr(self, changed_widgets=None):
1316 """It is used to automatically represent the object to HTML format
1317 packs all the attributes, children and so on.
1318
1319 Args:
1320 changed_widgets (dict): A dictionary containing a collection of tags that have to be updated.
1321 The tag that have to be updated is the key, and the value is its textual repr.
1322 """
1323 if changed_widgets is None:
1324 changed_widgets = {}
1325 local_changed_widgets = {}
1326 self._set_updated()
1327 return ''.join(('<', self.type, '>\n', self.innerHTML(local_changed_widgets), '\n</', self.type, '>'))
1328
1329
1330class HEAD(Tag):

Callers 1

test_initMethod · 0.95

Calls 2

_set_updatedMethod · 0.80
innerHTMLMethod · 0.80

Tested by 1

test_initMethod · 0.76