parameters: (self)
return_statement: return directions
docstring: Stops recording the points to create the mouse gesture from,
          and creates the mouse gesture, returns the result as a string.
docstring_summary: Stops recording the points to create the mouse gesture from,
          and creates the mouse gesture, returns the result as a string.
docstring_tokens: Stops recording the points to create the mouse gesture from and creates the mouse gesture returns the result as a string .
function: def End(self):
          '''Stops recording the points to create the mouse gesture from,
          and creates the mouse gesture, returns the result as a string.'''
          self.recording = False
          
          #Figure out the gestures (Look for occurances of 5 in a row or more):
              
          tempstring = '0'
          possiblechange = '0'
          
          directions = ''
          
          for g in self.rawgesture:
              l = len(tempstring)
              if g != tempstring[l - 1]:
                  if g == possiblechange:
                      tempstring = g + g
                  else:
                      possiblechange = g
              else:
                  tempstring += g
              if len(tempstring) >= self.wobbletolerance:
                  ld = len(directions)
                  if ld > 0:
                      if directions[ld - 1] != g:
                          directions += g
                  else:
                      directions += g
                  tempstring = '0'
          
          if self.showgesture:
              self.parent.Refresh()
                  
          return directions
function_tokens: def End ( self ) : self . recording = False #Figure out the gestures (Look for occurances of 5 in a row or more): tempstring = '0' possiblechange = '0' directions = '' for g in self . rawgesture : l = len ( tempstring ) if g != tempstring [ l - 1 ] : if g == possiblechange : tempstring = g + g else : possiblechange = g else : tempstring += g if len ( tempstring ) >= self . wobbletolerance : ld = len ( directions ) if ld > 0 : if directions [ ld - 1 ] != g : directions += g else : directions += g tempstring = '0' if self . showgesture : self . parent . Refresh ( ) return directions