What is the standard way of changing the text of a HTML formatted document?
I want to use a HTML document inside a IncrementalTextLayout as a message
box. When a new message comes up, it is pushed at the bottom of the
document.
The problem that I have is that, if I simply append the message after the
document is generated, the HTML tags are rendered as plain text.
Here is a sample of what I'm trying to do:
document = pyglet.text.decode_html('<b>Foo</b>')
layout = pyglet.text.layout.IncrementalTextLayout(document, 300, 300, True)
document.insert_text(0, "<b>Bar</b>")
Drawing layout shows a bold Foo and <b>Bar</b>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.