original_docstring: 
          Translate a global position into local space.
          
docstring: Translate a global position into local space.
docstring_tokens: Translate a global position into local space .
code: def posGlobalToLocal(self, pos):
  
          """
          Translate a global position into local space.
          """
  
          if not self.parent:
              #is root
              return pos
          return self.parent.posLocalToGlobal([pos[0]-self.pos[0], pos[1]-self.pos[1]])
code_tokens: def posGlobalToLocal ( self , pos ) : if not self . parent : return pos return self . parent . posLocalToGlobal ( [ pos [ 0 ] - self . pos [ 0 ] , pos [ 1 ] - self . pos [ 1 ] ] )
short_docstring: Translate a global position into local space.
short_docstring_tokens: Translate a global position into local space .
comment: """
          Translate a global position into local space.
          """$SEP$#is root