librocket GUI support

I’m having a bit of trouble changing properties at runtime - and I’m kind of assuming I just don’t understand the libRocket API well enough - but whenever I try to change an object property once run() is called it either crashes my application or does nothing.

What I’m trying to do is create a text field I can update as needed, but I get the following error:

Boost.Python.ArgumentError: Python argument types in
    None.None(Element, unicode)
did not match C++ signature:
    None(class Rocket::Core::Element {lvalue}, class Rocket::Core::StringBase<char>)

I’ve tried using a

and a

. From what I gather a div is translated into an Element, and a

is translated into an ElementText. Respectively, I’ve tried assigning document.getElementById(‘id’).inner_rml and document.getElementById(‘id’).text directly. The

property crashes with the above error, and the

method doesn’t seem to do anything. I’ve tried calling context.Update() after the

property, but that doesn’t help.

If I change these properties before Panda’s run() method is called I have no issues, but once run() is called the

method crashes and the

method doesn’t do anything. I’m assuming I’m just doing this wrong. What’s the right way to do this is? Any help would be much appreciated.