parameters: (self, tool, id_drawobj=-1)
return_statement: return tool.ident not in ['delete', 'stretch']
docstring: Returns True if this tool can be applied to this drawobj.
          Optionally a particular drawobj can be specified with id_drawobj.
docstring_summary: Returns True if this tool can be applied to this drawobj.
          Optionally a particular drawobj can be specified with id_drawobj.
docstring_tokens: Returns True if this tool can be applied to this drawobj . Optionally a particular drawobj can be specified with id_drawobj .
function: def is_tool_allowed(self, tool, id_drawobj=-1):
          """
          Returns True if this tool can be applied to this drawobj.
          Optionally a particular drawobj can be specified with id_drawobj.
          """
          # basic tools:
          # return tool.ident not in   ['configure','select_handles','delete','move','stretch']
          return tool.ident not in ['delete', 'stretch']
function_tokens: def is_tool_allowed ( self , tool , id_drawobj = - 1 ) : # basic tools: # return tool.ident not in   ['configure','select_handles','delete','move','stretch'] return tool . ident not in [ 'delete' , 'stretch' ]