Skip to content

Instantly share code, notes, and snippets.

@scott-maddox
Created July 18, 2019 21:16
Show Gist options
  • Save scott-maddox/643ba6b2afd39e8a2bbaff80776a4202 to your computer and use it in GitHub Desktop.
Save scott-maddox/643ba6b2afd39e8a2bbaff80776a4202 to your computer and use it in GitHub Desktop.
from traits.api import HTML, HasStrictTraits
from traitsui.api import UItem, View
class Test(HasStrictTraits):
html = HTML
traits_view = View(UItem('html'))
def _html_default(self):
return """
<table>
<tr><th>A</th><th>B</th><th>C</th></tr>
<tr><td>1</td><td>2</td><td>3</td></tr>
</table>
"""
Test().configure_traits()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment