def setText(self, text):
        self.face = DOM.createDiv()
        UIObject.setStyleName(self.button, self.face, self.STYLENAME_HTML_FACE,
                              True)
        DOM.setInnerText(self.face, text)
        self.button.updateButtonFace()
Sets the face's contents as text.
dataset/ETHPy150Open anandology/pyjamas/library/pyjamas/ui/CustomButton.py/Face.setText