MessageScreen

MessageScreen is the most basic screen implementation that just aims to display a message to the user and trigger callback when a mouse event occurs at any position in the screen.

XML definition

<screen name="foo" type="message">
    <message>displayed message</message>
</screen>

Callback binding

Given a screenflow instance, with registered foo message screen, callback binding can be achieved using on_touch decorator:

@screenflow.foo.on_touch
def on_foo_touch():
    # TODO : Callback action here.