Created
July 18, 2019 21:16
-
-
Save scott-maddox/643ba6b2afd39e8a2bbaff80776a4202 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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