This is quite easy:
Code:
import appuifw
# creates an instance for the text
tx = appuifw.Text()
#sets app body to text
appuifw.app.body = tx
# sets the text font
tx.font = u"Nokia Hindi S6016b"
# sets text color - red in this case
tx.color = (255,0,0)
# sets text style - bold in this case
tx.style = (appuifw.STYLE_BOLD)
# adds text Hello World! to the screen
tx.add(u"Hello World!")
# returns unicode string with the screen text
user_text = tx.get()
# clears the text editor
tx.clear()
Hope it helps,
Rafael.