get_pragma_tool_text(object_, id, key)#

Get the text of the pragma for an object.

  • Return None when the pragma does not exist.

  • Raise the TypeError exception when the pragma exists but is not textual.

See the pragma_tool example.

Parameters:
object_suite.Object

Element to search for the pragma.

idstr

ID of the pragma.

keystr

First token of the pragma.

Returns:
str

Text of the found pragma or “”.