(self, text)
Sets the text that will be drawn.

        If `text` is ``None``, it will be mapped to an empty string; otherwise,
        it will be converted to a string.
Sets the text that will be drawn.
Sets the text that will be drawn .
def text(self, text):
        """Sets the text that will be drawn.

        If `text` is ``None``, it will be mapped to an empty string; otherwise,
        it will be converted to a string."""
        if text is None:
            self._text = ""
        else:
            self._text = str(text)
def text ( self , text ) : if text is None : self . _text = "" else : self . _text = str ( text )