class_docstr: Class that draws text on a Cairo context.
  
  This class supports multi-line text unlike the original Cairo text
  drawing methods.
class_docstr_tok: ["Class","that","draws","text","on","a","Cairo","context",".","This","class","supports","multi-line","text","unlike","the","original","Cairo","text","drawing","methods","."]
docstr: Sets the text that will be drawn.
  
  If C{text} is C{None}, it will be mapped to an empty string; otherwise,
  it will be converted to a string.
docstr_tok: ["Sets","the","text","that","will","be","drawn",".","If","C","{","text","}","is","C","{","None","}",",","it","will","be","mapped","to","an","empty","string",";","otherwise",",","it","will","be","converted","to","a","string","."]
code: def text(self, text):
      """Sets the text that will be drawn.
  
      If C{text} is C{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)
  
file_path: python-igraph/src/igraph/drawing/cairo/text.py
imports: import re
  from warnings import warn
  from igraph.drawing.cairo.base import AbstractCairoDrawer
label_desc: Use image node_id 8 for calling the CairoTextDrawer obj's underlying member method code with example usage: obj.text(text) without return types