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)
| 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 | |
| 1330 | class HEAD(Tag): |