

def update_editor(self):
    ' Updates the editor when the object trait changes external to the\n            editor.\n        '
    text = self.str_value
    if self.factory.format_text:
        text = self.factory.parse_text(text)
    if self.base_url:
        url = self.base_url
        if (not url.endswith('/')):
            url += '/'
        self.control.setHtml(text, QtCore.QUrl.fromLocalFile(url))
    else:
        text.control.setHtml(text)

dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/html_editor.py SimpleEditor.update_editor/VarMisuse@93/139 `self`->`text`